It’s a good practice to use many small JavaScript and CSS files instead of one large JavaScript/CSS file for better code maintainability, but bad in terms of website performance. Although you should write your JavaScript code in small files and break large CSS files into small chunks, when a browser requests those JavaScript and CSS files, it makes one HTTP request per file. Every HTTP request results in a network roundtrip from your browser to the server and the delay in reaching the server and coming back to the browser is called latency. So, if you have four JavaScripts and three CSS files loaded by a page, you are wasting time in seven network roundtrips. Within the USA, latency is average 70ms. So, you waste 7×70 = 490ms, about half a second of delay. Outside USA, average latency is around 200ms. So, that means 1400ms of waiting. The browser cannot show the page properly until CSS and JavaScripts are fully loaded. So, the more latency you have, the slower the page loads...
Tags
apple CMS CSS CSS Expression Css File Css Hacks Css Properties Developer Div Drupal Elements Ff Flash Google Hack hacks HTML Html Code Html Hack Ie6 Ie7 Internet Explorer Javascript Joomla jQuery Management Systems markup Markup Service Max Width Min Width MooTools Opera Opera 9 Optimizer Quality Assurance Quality Criteria Safari Semantics sIFR Style Files Traffic Validator Web Developer Web Experts Wordpress
Flash tag cloud Flash Player 9 or better.
Categories
CSS (7)
Drupal (4)
General (2)
Ideas to artwork (6)
Javascript (3)
Joomla (3)
PSD to HTML (15)
Wordpress (5)
Flash tag cloud Flash Player 9 or better.
Blog Newsletter
Loading ...
BRAINFART