5 ms·
Is it? It seems to me getting the size of an element is a pretty basic operation that a lot of scripts use.
by vekker 7y ago
Is it? It seems to me getting the size of an element is a pretty basic operation that a lot of scripts use.
- oneeyedpigeon 7y agoMaybe scripts for advanced apps, but most apps and all content shouldn’t have the slightest interest in positioning elements down to the pixel.
- vekker 7y ago35% of all websites run Wordpress. A lot of those sites run pre-made templates which often heavily use jQuery scripts to show pop-ups, sliders, tooltips, what have you... Accessing the width/height of an element is pretty standard in those scripts. That's not at all limited only to advanced apps. I'm just saying that simply blocking or limiting that part of the DOM API is probably not a practical solution.