Jump to content


Photo
- - - - -

Css Optimization

css loading time optimization

  • Please log in to reply
3 replies to this topic

#1 benz_admin

benz_admin

    Advanced Member

  • Members
  • 65 posts
  • Country: Country Flag

Posted 13 November 2012 - 05:43 PM

Hi to all.
I have some problem with loading time of my blog.
I've done some tests and all of them show that is are necessary about 4 seconds to load a css file.

the css path is:
mydomain.com/wp-content/themes/pagelines/pagelines-compiled-css-1_1352746913/

what is it?!?
How can I resolve this problem?
thanks

ps: i've already installed W3 total cache with css minifing! :(

#2 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 14 November 2012 - 03:22 AM

Contact your hosting company and ask them to please upgrade the amount of memory allocated to PHP processing. Usually, hosts set this at 32Mb or lower. Ask for an increase to 128Mb.

#3 benz_admin

benz_admin

    Advanced Member

  • Members
  • 65 posts
  • Country: Country Flag

Posted 14 November 2012 - 10:44 AM

I'll try to ask it, but all other files have a good loading time. only this file has a problem.
I think that the host isn't the solution...

#4 Danny

Danny

    Is Awesome!

  • Moderators
  • 15047 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 14 November 2012 - 11:33 AM

Hi,

The compiled CSS you're talking about isn't the issue, the compile css loads after everything else, so it has to wait for all your other content to be loaded beforehand. That's why when you run a test such as Pingdom, it may be listed as taking X seconds to load but thats only after all your images and plugins have been loaded.

If you go to the URL for your compiled CSS, it loads instantly.

I ran a test of my own and found that you're using shared hosting and there are 166 websites hosted on the same server as you. It you're concerned about performance, then I would recommend upgrading to a new package such as a VPS or Ded Box, or changing host.

To gzip your compiled CSS you will have to turn the file mode on by adding the following to wp-config.php


Please Login or Register to see this Hidden Content

Over optimisation will actually slow your site down, especially as you have opted to use disk based object/database and page caching, most cheap shared hosts used network filesystems and are slow as custard.