Current time: 02-26-2021, 08:29 AM Hello There, Guest! (LoginRegister)

Post Reply 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gzip compression and CSS sprite issue left
06-27-2013, 06:57 PM
Post: #2
RE: Gzip compression and CSS sprite issue left
0. You're testing with IE7 which isn't representative of most users these days (even in the Outback). Use IE8, 9 or Chrome. IE7 only makes two connections per hostname rather than the usual six, which causes you a lot of pain because...
1. You have too many HTTP requests. A lot of these are for 'furnature', e.g. vtop/grey/bg.jpg which would probably be better off served as PNGs anyway. Then you can sprite them. You do not need to consider spriting IMG elements yet.
2. jQuery, fastslideshow.js and thickbox are all blocking all subsequent requests: synchronous jaavascript is killing your FEO.
-> Turn off javascript in your browser, and adapt your page so that it can load fully and look OK without javascript.
-> Now that all the javascript that remains is just 'enhancements', move it into a $.document.ready(function () { ... }) call. Place this at the end of your HTML just before the closing body element, with the jquery load just in front of it.
3. add a dns-prefetch for your image subdomain.
4. move the google analytics code to the end, after the jquery stuff. Make sure it is loading asynchronously.
5. Use a CDN for requesting jQuery. the only one in the game really is Google's. Use a popular version to enhance the chances of it already being cached. I use 1.7.2
6. Move your gzip compression to the web server (e.g. apache) instead of your application language (e.g. PHP). make sure Javascript and CSS get compressed.

Once you've done all this, come back and post your test results, and we'll see where we can go from there.
Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
RE: Gzip compression and CSS sprite issue left - nickshanks - 06-27-2013 06:57 PM

Forum Jump:

User(s) browsing this thread: 1 Guest(s)