4 ms·
1.02mb in just DOM alone. Good lord. I know Polymer is heavy, but still. I never understood why our web sites are so bloated compared to those of other multi
by pcurve 10y ago
1.02mb in just DOM alone. Good lord. I know Polymer is heavy, but still.
I never understood why our web sites are so bloated compared to those of other multi billion dollar portal companies.
Look at naver.com and their just redesigned site and source. Or their celeb video portal www.vlive.tv.
- codefined 10y agoEntertainingly, the size for naver.com and youtube.com are the same for me, both reaching 1.6MB (without caching). As far as I can see, the only difference is that for naver.com, 1.3MB are for images with 0.3MB for the page whereas with youtube.com only 0.6MB are for images and 1MB is for the page.
- ergo14 10y agoAre you testing under firefox? They are serving some crazy HTML for it - chrome gets much smaller source... like three times smaller.
- ergo14 10y agoPolymer is 35kb, and the markup in my applications has same size roughly that I do with react or angular 1.x. You sure you measured things correctly? That being said 1MB of DOM... It kind of looks machine generated - icon definitions seem to be served in source, and other resources - this makes no sense to me. I'm getting thee times bigger html file served under firefox than chrome, looks like a bug.
- pcurve 10y agoWow, I certainly hope not. I opened up Chrome DOM inspector, clicked "Edit as HTML", selected all and copied, pasted into code editor, and saved the file as HTML. The file quickly grows as soon as you take any action and load more DOM. One quick scroll, and I was already up to 1.65MB.