Categories: General

Ad code ‘slows down’ browsing speeds

Image copyright
Getty Images

Image caption

Poorly written code can make some pages very slow to load

Ads are responsible for making webpages slow to a crawl, suggests analysis of the most popular one million websites.

The research by developer Patrick Hulce looked at which chunks of code take longest to load.

About 60% of the total loading time of a page was caused by scripts that place adverts or analyse what users do, he found.

But using ad-blockers may not be the best way to avoid delays and speed up the loading of webpages, he said.

Bad blocks

Mr Hulce gathered data from both desktop and mobile versions of popular sites on which he sampled programs written in the Javascript language. This is typically used by developers to make sites interactive and also helps them display ads or log what users click on.

He found that the Javascript code helping Google place ads on pages and analyse user activity bestowed the longest delays on visitors. The Javascript behind Google ads and its analytics system were found on the largest number of sites in the million sampled, Mr Hulce told The Register news site.

If used together on a site, these can add more than two-thirds of a second to loading times, he found.

There were some ad-serving scripts written in Javascript that imposed longer delays, but these were used on a much smaller proportion of sites, the analysis found.

The worst offender was the WordAds script for WordPress blogs that, all by itself, can delay the arrival of an entire page by up to 2.5 seconds.

Not all delays were down to ads and analytics, said Mr Hulce. Other factors such as network delays and big file sizes for some content could also contribute to slow loading times.

In addition, he said, greater use of ad-blocking programs may not always improve browsing speeds.

Ad-blockers can end up “triggering convoluted workaround logic and complex disguising of ads that increase script execution time”, he told The Register.



Source by [author_name]

Share
Published by

Recent Posts

TEST: Living Like a RockStar: Get in Front of YOUR Money (Part 4)

TEST... If it is alright with you, would it not be better to make it…

2 years ago

TEST: Living Like a RockStar: Zero Fear Selling & Having it YOUR Way (Part 5)

TEST... Would it be okay with you if selling was just easy? Would you be…

2 years ago

TEST: Where To Get No Cost Royalty Free Music For Your Videos

TEST... Adding music to your videos can help to increase engagement, sales and more. We…

2 years ago

TEST: Today We Talk About Needs in Ben’s Ride Along video

TEST... This is very rarely discussed. And it is one of the most powerful things…

2 years ago

TEST: Sell These Videos For $500 or More Each?

TEST... In this video, I show you (Watch Over My Shoulder Style) how you can…

2 years ago

TEST: The “Shell Shock Habit” – RockStar Entrepreneur

TEST... More times than not, you may find that the thing holding you back has…

2 years ago