📜 ⬆️ ⬇️

Performance of flash banners

Part of it, when I work with many sites, some of the most blatant pages take up too much CPU time, which is why the system uncomfortably slows down. Most often it turns out that the culprit is some tricky banner on Flash or a completely useless stray on JavaScript that runs in the background.

I understand perfectly well that for a long time no one has been fighting for every processor clock or byte of RAM. Today, the amount of RAM is calculated in gigabytes, and no one will be surprised by the processor in a couple of gigahertz. Perhaps this is correct, because sometimes it is cheaper to buy an extra gigabyte of RAM than to do optimization. However, there must be some kind of reasonable framework.

Today I went to the Onlayner forum , but literally after 15 seconds of reading a page, the entire system, together with the browser, began to leisurely react to my actions. The culprit was a small Flash banner at the top of each page. Attempts to use other browsers gave quite the expected result - it is impossible to use the site at all, if you do not turn off Flash or use the advertising filter. As the owners of the site have allowed the placement of such a banner - I'll never know.


')
One such banner - and few users will return to your site. The above example is, of course, more the exception than the rule. Although a walk through sites with enabled instrumentation (in the form of Process Explorer) showed that spending 10-60% of my Dual Core 2GHz processor time on banners is normal. The only good thing is that on inactive pages flash objects do not spend so much resources.



It may be worthwhile for site administrators to impose restrictions not only on the banner size, but also on the resources taken by it on client machines? Then the banner developers will be forced to optimize their work at least a little bit, and users will have one less reason to put an advertisement filter.

Source: https://habr.com/ru/post/77535/


All Articles