The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › Other › How to reduce number of http requests?
I have used about 24 js plugins inside of my pages and when I use a speed optimization system it gives me a high http request error.
How can I decrease this number?
Is it good to put all of js codes inside of only one file?
notice I’m using jquery , jquery ui , jqury cookie and …
You can also conditionally load assets, so if you’re using WordPress:
// code to load the asset
this way you request the asset only when it is needed.
You could have apache do this work for you with .htaccess file. See section [File concatenation](https://github.com/h5bp/html5-boilerplate/blob/master/.htaccess) line #509 from HTML5Boilerplate .htaccess file.
Thank you @AlenAbdula !
I’m now working on html version of my template.
How should I do this work for html?