8 ms·
Why would you have ever written JavaScript to lazy-load images? The browser knows what’s on the page and can optimize its loading already. Don’t screw with tha
by eschaton 8y ago
Why would you have ever written JavaScript to lazy-load images?
The browser knows what’s on the page and can optimize its loading already. Don’t screw with that. This kind of assistance from the browser is why.
Also, you don’t need to run code in documents. Web pages are documents.