by codedokode · 10y ago · 0 comments
For example, reddit frontpage (which doesn't have much ad) has 6 additional iframes. It makes 76 requests (775 Kb) while loading of which only 15 (taking 335 Kb) belong to reddit domains, other are third-party. So by just disabling third-party services (you can do it on the browser side) they can make the page two times smaller.
Techcrunch has 19 additional iframes. It makes 273 requests (of which approximately 190 are third-party) and loads 2.1 Mb of data (of which approximately 1.1 Mb account for third-party domains). Opening single techcrunch page is like opening 20 new tabs in your browser.
And as a site owner you cannot optimize your ad provider scripts. Yet you can "optimize" them out at a browser side as a user.
Instead of blaming everything on javascript or jquery people should look at network tab in developer tools.
They still might have dumb code and overly fancy animations of course.
You can, if you directly negotiate ad contracts.