Jump to content

Can Javascript Or Ajax Codes Affect The Website Performance?

Can Javascript or Ajax codes affect the website performance?

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Can Javascript Or Ajax Codes Affect The Website Performance? Can Javascript or Ajax codes affect the website performance? Rate Topic: -----

#1 User is offline   Joe Develper 

  • W.R. Corporal
  • Group: Members
  • Posts: 50
  • Joined: 07-December 10
  • Gender:Male
  • Interests:Web development, Internet Surfing etc.

Posted 10 December 2010 - 06:49 AM

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.
0

#2 User is offline   temhawk 

  • W.R. Private First-Class
  • Group: Members
  • Posts: 322
  • Joined: 30-August 07
  • Gender:Male
  • Interests:travel, cg art, macs, music, skateboarding, programming, discovery channel, TextMate 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

0

#3 User is offline   contrariwise 

  • W.R. Private
  • Group: Members
  • Posts: 7
  • Joined: 08-December 10
  • Gender:Not Telling
  • Location:Near Santa
  • Interests:steampunk robots, no tea, convincing non-geeks that I fit in with them, counting solipsists, pretending i'm a time traveler

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.
0

#4 User is offline   Catalyst 

  • Codesmith
  • Group: Administrators
  • Posts: 1,049
  • Joined: 04-April 06
  • Gender:Male
  • Location:San Diego

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.
0

#5 User is offline   Joe Develper 

  • W.R. Corporal
  • Group: Members
  • Posts: 50
  • Joined: 07-December 10
  • Gender:Male
  • Interests:Web development, Internet Surfing etc.

Posted 12 December 2010 - 12:18 PM

View PostCatalyst, 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! B)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users