Can Javascript or Ajax codes affect the website performance? My website has a lot of ads like adsense, cpx, and I also use the Openx script. All of them run on javascript platform as well. On average, I have 4-5 ads per page. Will this increase my website loading time? Apart from the ads, I only use one single javascript code to implement my website's navigation menu.
Can Javascript Or Ajax Codes Affect The Website Performance?
Can Javascript or Ajax codes affect the website performance?
Page 1 of 1
Can Javascript Or Ajax Codes Affect The Website Performance? Can Javascript or Ajax codes affect the website performance?
#1
Posted 10 December 2010 - 06:49 AM
#2
Posted 10 December 2010 - 09:15 AM
I would say that they are definitely increasing the loading time of your website. But I can't say by how much. Remember that the loading of JavaScript blocks anything else from being loaded at that same time. If you want numbers, I suggest taking a look at Firebug's "Net" panel, where it will show you the lookup/request/loading times for each file in a nice graph. You can also use Safari's Web Inspector ("Resources" tab). And don't forget to test it with both an empty cache and a primed (non-empty) cache. I hope that answers your question sufficiently.
This post has been edited by temhawk: 10 December 2010 - 07:01 PM
#3
Posted 10 December 2010 - 05:13 PM
Hey Joe, would you like to link to your site? Then maybe I or someone else can find the problem.
#4
Posted 10 December 2010 - 05:35 PM
Well written JS extras should load after you page loads, so everything might take a little while to load depending on how fast or slow the other services are running, but your main page content shouldn't be affected by it.
#5
Posted 12 December 2010 - 12:18 PM
Catalyst, on 10 December 2010 - 05:35 PM, said:
Well written JS extras should load after you page loads, so everything might take a little while to load depending on how fast or slow the other services are running, but your main page content shouldn't be affected by it.
You are right, the main page content is not affected by it. Thanks guys!
Share this topic:
Page 1 of 1


Help
This topic is locked
MultiQuote










