Current time: 02-29-2020, 02:26 AM Hello There, Guest! (LoginRegister)

Post Reply 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
where is the java script
02-23-2015, 10:35 PM (This post was last modified: 02-23-2015 10:40 PM by ajm_76.)
Post: #3
RE: where is the java script
(02-20-2015 08:04 PM)liguolong Wrote:  Hi, I am new to website building. It looks like my website has a lot javascript which slows down. I am not sure where is the script situated and what can I do to improve it.

Hi liguolong,

The site isn't optimized very well but JavaScript is not the primary problem (since it is being deferred).

Slider Revolution's captions.php?rev=4.3.8 file is pushing DOM Content Loaded out to around 14 seconds (on average), which means that Google's .woff files for the Web fonts you're using are not being applied until then, after DOM content is fully present. This explains some of the strange-looking loading behavior.

You have a few different options:
1.) You don't appear to actually be using Revolution Slider so you could disable it;
2.) You could stuff all of the necessary .woff files into the browser as a subresource (Chrome; "prefetch" for Firefox), thereby making those files available prior to DOM Content Loaded (assuming, of course, that the browser takes the hint). Doing this will not really improve the site's Document Complete or Fully Loaded times, but will appear to for the end user.
3.) Instead of using the "defer" attribute on your JavaScript files, you could try "async" which will bring DOM Content Loaded much closer to the first paint thereby applying Google's .woff files sooner. "Async" may break things, however.

There are quite a few more issues, but fixing the above will do a lot.

Managing Partner

Make your WordPress website or blog not just faster & not merely fast, but one of the fastest sites in the ENTIRE WORLD.

Performance. Speed. Get Some. WpFASTER!
Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
where is the java script - liguolong - 02-20-2015, 08:04 PM
RE: where is the java script - alien_ - 02-23-2015, 08:38 AM
RE: where is the java script - ajm_76 - 02-23-2015 10:35 PM

Forum Jump:

User(s) browsing this thread: 2 Guest(s)