1

I'm having difficulties with the following website :

http://ladaily.com/los-angeles

Seems like the rendering time of small images (less than 1KB) is extremely slow (over 2+ seconds). Any idea on what can I do?

I know a big CSS file is a problem, but I can't do anything now to seperate it – any other idea why it occurs?


I think I got if figured , but from some reason images still loading very slow , Do you think it has anything with the server's configuration ?

5
  • how to compress CSS file size stackoverflow.com/questions/787789/…
    – Viswanathan Iyer
    Commented May 26, 2011 at 10:57
  • also make sure you're caching everything you can.
    – sabre
    Commented May 26, 2011 at 10:59
  • possible duplicate of Is css-sprite a good technique? Commented May 26, 2011 at 11:00
  • I don't see any problem with this site. Do you use a recent browser / computer? Have you tried removing Google Maps from the page?
    – edwin
    Commented May 26, 2011 at 11:01
  • minified all JS + CSS , removed google maps API.
    – Gal
    Commented May 26, 2011 at 12:21

1 Answer 1

7

If you're using Firefox, you could install a page-speed analyzing-addon like yslow or google page speed - this tells you how to optimize your website (sometimes not all of the optimizations are possible, but some are easy to do). this are some of the hints yslow gives for your site:

  • This page has 27 external Javascript scripts. Try combining them into one.
  • This page has 10 external stylesheets. Try combining them into one.
  • This page has 41 external background images. Try combining them with CSS sprites.
  • There are 76 static components without a far-future expiration date. (note by me: this might cause some browsers to not cache this css and js files and reload them on every page-load)

Also, your site is about 1143 KB in size to download if nothing is in the user's cache - that's really big, so you could try to minimize or compress the html, css and javascript (if you haven't done this already - but if your site is still about 1 MB after compression and minification it looks like there's something wrong...)

2
  • Most of the JS are external (google api , facebook .. etc..) , and the are a few JS and CSS running from my domain. I believe the main problem is that there are ALOT of small images , or am I wrong ?
    – Gal
    Commented May 26, 2011 at 11:34
  • @Gal: Indeed, those are the “42 external background images”. See the answers on the question I linked to to see what you can do. That said, 27 external scripts is quite a lot. One of the problems is that each successive HTTP request generates some overhead. Commented May 26, 2011 at 12:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.