In Firefox you can easily answer questions like "how much memory are strings taking up on this page", thanks to the fine-grained measurements available in about:memory.
I don't know of a way to get these measurements in other browsers. Chrome's about:memory page contains much coarser measurements, for example.