- This topic has 2 replies, 2 voices, and was last updated 13 years, 8 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Speed suggestion – Combine all the javascript files in the plugin
Tagged: standalone
Love the plugins – been using them for a while now with no problems.
I do have a suggestion though – there’s a lot of javascript files (http requests) being called when I have the plugins installed, which is giving me a low YSlow rating, and also slowing down my website a little. For a future version, would it be possible to have all javascript inside one file? Right now there’s multiple files, as well as some javascript being inserted directly into wp_head. It would be much cleaner and more efficient if everything was just called from one file I think
Something to think about, thanks a lot for the great plugins!
Yes combining all the Javascript files in one file is a good way to go but we actually don’t include all the javascript files for every installation. If you are using a certain feature of the product that requires a javascript library the product then includes that library (it includes the libraries on demand based on what you are using). This approach has a lot of advantages.
Now, there is a really easy way to accomplish what you are after. Use the W3 Total Cache plugin:
https://support.tipsandtricks-hq.com/forums/topic/using-the-plugins-with-w3-total-cache-plugin
You simply view the source code of your site and find out which javascript files you want to compile into one file and you can specify W3 Total Cache to compile them in one file and serve it to the browser. All taken care of in one go! This way you don’t have to chase up individual plugin or theme developers to compile the Javasript files in one file. In W3 Total Cache you can also specify if the javascript files should be sent to the footer instead of the header.
Awesome – never thought to look into what those features did in W3 Total Cache – thanks a lot man!