Archived

This topic is now archived and is closed to further replies.

  • 0

Css Optimization


Question

Posted · Report post

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! :(

Share this post


Link to post
Share on other sites

3 answers to this question

Posted · Report post

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.

Share this post


Link to post
Share on other sites

Posted · Report post

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...

Share this post


Link to post
Share on other sites

Posted · Report post

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


define( 'LESS_FILE_MODE', true );

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.

Share this post


Link to post
Share on other sites