Archived

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

  • 0

Help My Site Is Loading So Slow!


Question

15 answers to this question

Posted · Report post

Did you try adding the code from the other post you commented in?

Share this post


Link to post
Share on other sites

Posted · Report post

no what does it do?!

Share this post


Link to post
Share on other sites

Posted · Report post

Its tells the framework to use a file instead of a dynamic url for the css, so its written to an actual css file which can be cached by the browser/cdn/isp/moonbase whatever.

Share this post


Link to post
Share on other sites

Posted · Report post

As you suggested, I added this line of code to wp-config.php

define( 'LESS_FILE_MODE', true );

I ran the test again and the speed is improved but the slowest thing to load is still the CSS, which is 197k in size.

http://tools.pingdom.com/fpt/#!/LnV8z8xH3/http://heathertaylorhome.com

Is there something else going on?

Share this post


Link to post
Share on other sites

Posted · Report post

Your server might not be compatible, enable debug mode under the advanced tab

Share this post


Link to post
Share on other sites

Posted · Report post

debug enabled.

Share this post


Link to post
Share on other sites

Posted · Report post

No reason there why it shouldn't work, where did you add the define line?

Share this post


Link to post
Share on other sites

Posted · Report post

in wp-config.php at the bottom of the file.

Share this post


Link to post
Share on other sites

Posted · Report post

ok, right at the bottom? Below the do not edit below this line?

Share this post


Link to post
Share on other sites

Posted · Report post

looking closely now.

Here's the bottom of the wp-config.php file:

/* That's all, stop editing! Happy blogging. */

/** Absolute path to the WordPress directory. */

if ( !defined('ABSPATH') )

define('ABSPATH', dirname(__FILE__) . '/');

/** Sets up WordPress vars and included files. */

require_once(ABSPATH . 'wp-settings.php');

I had originally pasted the code below these lines. now I just pasted the line above the line that reads

/* That's all, stop editing! Happy blogging. */

Share this post


Link to post
Share on other sites

Posted · Report post

Yes its working now

Share this post


Link to post
Share on other sites

Posted · Report post

thanks, the css file is still nearly 200k. Is that normal?

Share this post


Link to post
Share on other sites

Posted · Report post

200k is fine. Its loaded once and stored, thats the idea.

Share this post


Link to post
Share on other sites

Posted · Report post

i see. tests now range between 3 and 6 seconds now. it is faster for sure. anything else I could be doing? I checked the box to Enable CSS minification

Share this post


Link to post
Share on other sites