Finding memory size of materials/textures

Is it possible to find the memory size of materials or textures in Javascript? I’m working on loading GLTF variants and there’s an issue where loading too many variants will cause the browser to run out of allocated memory. To counter this, I’m attempting to track the memory usage and dispose of materials/textures before the browser runs out of allocated memory.