Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/tamain/public_html/_includes/cmsbclass.php on line 124 Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/tamain/public_html/_includes/custclass.php on line 126 Combine CSS and JS files when possible | Milwaukee, Waukesha, Elgin and Orlando Area Website Design and Custom Software Development
 

Combine CSS and JS files when possible

Posted by Gary Hoffmann on Sun Feb 20th, 2011 at 8:35 am

Web servers and web hosting companies are putting in rules to limit and / or eliminate denial of service attacks.

 

One such rule is to limit the number of connections in a short period of time from any given IP address.

 

As a web page loads and it has to load each css and js file, each of these may cause an additional connection to the web server. It doesn't take long to break the firewall rules and have your connections limited.

 

One solution to this is to combine CSS files when possible and to combine JS files when possible.

 


<<-- Back to Technically Speaking - Our Blog  Email to a friend