✅WORDPRESS OPTIMIZATION GUIDE! FROM 3 TO 1 SECOND LOAD-TIME❗❗

sygamers

Regular Member
Joined
Jun 26, 2013
Messages
308
Reaction score
126
Hey,
That's a great share, i did all steps and improved alot my website speed.
Then i tried to do "cookie-free domain" and now i'm getting "HTTP ERROR 500" on this website. Do you know anything about this?

Thanks!
 

FatBee

Elite Member
Joined
Apr 4, 2015
Messages
3,024
Reaction score
2,913
Website
optimizewp.net
Hey,
That's a great share, i did all steps and improved alot my website speed.
Then i tried to do "cookie-free domain" and now i'm getting "HTTP ERROR 500" on this website. Do you know anything about this?

Thanks!
You did something wrong... And with no error log, or screenshot of your cloudflare, or what you input in the wp-config and the SQL you run I cant really help you
 

Sushant Pawar

Senior Member
Joined
Mar 7, 2018
Messages
809
Reaction score
320
- Prevent Contact Form 7 from loading on every page.

I don't know why is this, but it happens a lot and what's weird it's not on every WP installations. 3 of 5 of my websites have this issue. This is a pretty simple one.

1. Go to functions.php (public_html/wp-includes)
2. Add the following code on the bottom.
PHP:
// Remove contact form 7
add_filter( 'wpcf7_load_js', '__return_false' );
add_filter( 'wpcf7_load_css', '__return_false' );
add_action('wp_enqueue_scripts', 'load_wpcf7_scripts');
function load_wpcf7_scripts() {
  if ( is_page('contact') ) {
    if ( function_exists( 'wpcf7_enqueue_scripts' ) ) {
      wpcf7_enqueue_scripts();
    }
    if ( function_exists( 'wpcf7_enqueue_styles' ) ) {
      wpcf7_enqueue_styles();
    }
  }
}
If you have CF7 on multiple pages, change " if ( is_page('contact') ) {" to "if ( is_page('contact|page1|page2|page3') ) {"

If you don't want to go into technical stuff and you are using a lot of plugins then use Asset Clean up plugin. With that, you can remove some plugins from specific pages from WP dashboard.
My 2 cents.
Great guide buddy!;)
 

MIRANTHA

Supreme Member
Joined
Aug 6, 2019
Messages
1,329
Reaction score
491
Nice post..i have one question .
When i scan my website on gtmetrix it says "too many redirects"
How can i solve that
Thanks
 

FatBee

Elite Member
Joined
Apr 4, 2015
Messages
3,024
Reaction score
2,913
Website
optimizewp.net
Nice post..i have one question .
When i scan my website on gtmetrix it says "too many redirects"
How can i solve that
Thanks
U did everything what i posted?
If yes, its something you fucked up.
If no, check the source of the problem and try to resolve it or just pm me with your site
 

MIRANTHA

Supreme Member
Joined
Aug 6, 2019
Messages
1,329
Reaction score
491
U did everything what i posted?
If yes, its something you fucked up.
If no, check the source of the problem and try to resolve it or just pm me with your site
No i didn't make changes to site.but too many redirects is the only red thing in my report.is there any plugins to that.
 

FatBee

Elite Member
Joined
Apr 4, 2015
Messages
3,024
Reaction score
2,913
Website
optimizewp.net
No i didn't make changes to site.but too many redirects is the only red thing in my report.is there any plugins to that.
Nobody can help you if you dont provide the url of your website.

based on what you saying the only solution i can give is change your index.php in to an empty index.html
 

Acriey

Junior Member
Joined
Nov 12, 2018
Messages
118
Reaction score
113
Seems nice!
Have you thought about making a Wordpress Optimization Service?
I think you would have success with your knowledge.
 

Hoco

Regular Member
Joined
Apr 14, 2017
Messages
394
Reaction score
154
Great guide, very easy to do - and it does provide results... I did a lot of at the end of April, shame your guide wasn't done then - would had saved me a few days of work and research! One thing I couldn't fathom out is with Google Speed Insights -- the warning with unused CSS appears on mobile. Any ideas on locating and rectifying this issue?
 

FatBee

Elite Member
Joined
Apr 4, 2015
Messages
3,024
Reaction score
2,913
Website
optimizewp.net
Great guide, very easy to do - and it does provide results... I did a lot of at the end of April, shame your guide wasn't done then - would had saved me a few days of work and research! One thing I couldn't fathom out is with Google Speed Insights -- the warning with unused CSS appears on mobile. Any ideas on locating and rectifying this issue?
Drop me a PM with your link, ill take a look. But 99% of the time is bad theme (unoptimized css which i cant really help you with)
 
Top