3 ms·
> 2- Removes unnecessary space (empty lines and spaces). Why the extra bits? The extra whitespaces are most probably the template output. If he is using erb, e
by irahul 15y ago
> 2- Removes unnecessary space (empty lines and spaces). Why the extra bits?
The extra whitespaces are most probably the template output. If he is using erb, erb is a generic template and doesn't make assumptions about relevance of whitespace. If you are optimizing by hand, you will still have all the newlines and indents in the output.
Some people use minifiers, most people don't care. Almost all servers and clients speak gzip, and the extra overhead is so low on the list of things to optimize that it probably isn't even on the list.
> 3- JavaScript, I see that you are loading a good chunk of JavaScript in the HEAD and you are loading a bunch of it in the end. For example the Amazon JS file (http://s3.amazonaws.com/new.cetrk.com/pages/scripts/0004/737... http://s3.amazonaws.com/new.cetrk.com/pages/scripts/0004/737...) is certainly not usable, and is yet a whole HTTP request.
Again, I am taking a guess. layout.html.erb yields under body, and head and scripts are same for all pages. Now patio11 can hand include just the needed scripts on every page, but he chose to include all scripts on all pages. This isn't something the designer controls.
> 2- http://dl.dropbox.com/u/2777218/shot2.png http://dl.dropbox.com/u/2777218/shot2.png
That menu change really looks weird.