Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Http request for js and css file [closed]

In my website, when I analysed it. Shows that my site has a 17 external js file and 4 css file. And recommended me to reduce the number of http request made.

And my questions are...

1) Does more http requests reduce overall ranking?

2) If I reduce my http requests by combining js file, the js and css file will be larger. Is it possible to reduce the size too?

Please give me some solutions.

like image 523
Nagarajan Ganesh Avatar asked May 19 '26 06:05

Nagarajan Ganesh


2 Answers

The suggestion to reduce the number of http requests is valid. Speed will suffer generally because many browsers will only download two files from the same domain at a time, and since Google has announced that speed does now effect their rankings it is wise to address the issue. You can combine your js and css files, use a compression like gzip on the server to reduce their size or even "compress" them using a number of free tools online.

like image 153
Gabriel Avatar answered May 21 '26 21:05

Gabriel


by combining js and css files into one you will reduce number of requests made, you will be saving on time that way. you cannot reduce size to zero, try compressing your js and css files using YUI COmpresssor

like image 27
Vinay B R Avatar answered May 21 '26 19:05

Vinay B R



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!