Moving plugin javascript to bottom of body
-
Hi,
I’m trying to speed up our company website. (www.centurionsystems.com) When I tested it earlier today it took 24 seconds(!) to load one page. I know for a fact that one of the main reasons the site is so slow is because all my scripts are at the top in my head, when I moved my scripts to the bottom of my body tag it cut my load time to 5 seconds the problem is I’m using several plugins that use javascript, as a result, when I move my scripts to the bottom, it breaks the plugin scripts obviously because now I’m calling a function before it’s been defined or vice versa. My question is, how can I move the scripts for my plugin down to the bottom of my body tag?I have tried a couple of hacks to find all scripts and css files, compress them and create one file so I have fewer server requests, all attempts at this failed.
Any suggestions would be greatly appreciated.
Thanks!
- The topic ‘Moving plugin javascript to bottom of body’ is closed to new replies.