How to improve first contentful paint and first meaningful paint on WordPress


#1

I test https://propakistani.pk/ this website speed on google website speed test. This website First Contentful Paint (2.3 s) and First Meaningful Paint(2.3 s) are great and loads website quickly also this website is running on Wordpress.

So @GulshanKumar here is my question How to improve first contentful paint and first meaningful paint on WordPress.


#2

Hi… Thanks for asking.
One moment, while I check this.


#3

There are two things I would recommend to see quick improvement

  1. Enable JetPack Photon
  2. Enable WP Rocket, Optimise CSS delivery and Load JS in deferred way.

I have selected these two things only based on easy to implement. Let me know if you have any more questions.

I am :100:% sure, there will be huge improvement in grade.


#4

Give me some times to enable those option on WP Rocket and checking it. :relaxed:


#5

after enabling Optimise CSS delivery on my website and click on the Regenerate Critical CSS i am getting this error. error

So @GulshanKumar can you help me regarding this.


#7

Please paste complete message. I couldn’t read full.


#8

here is the complete massage. I cover my website name with example.

Critical CSS generation finished for 2 of 4 page types.

  • Critical CSS for front_page not generated. Error: The following URL is unreachable: [400] https://www.example.com/
  • Critical CSS for page not generated. Error: The following URL is unreachable: [400] https://www.example.com/
  • Critical CSS for post generated.
  • Critical CSS for category generated.

#9

Few things to keep in note before running critical css generation

  1. Your site must be publicly accessible for the tool to work, that means it won’t work for locally hosted sites or sites blocked from the public by htaccess authentication, “maintenance mode” plugins or similar.
  2. These IPs have to be whitelisted by your server, firewall or security plugin :
  • 54.37.31.6
  • 167.114.226.142

(If you use Cloudflare, go to Firewall, whitelist these IPs.)

  1. WP-cron or a real server-side cron job must be able to run. Generally, WordPress site comes with cron-jobs enabled except at Siteground host :neutral_face:

  2. If still doesn’t work, please deactivate some plugins and try again. Recently, I found while work that a plugin was causing conflict and preventing generation of critical css.


#10

I am using sucuri firewall and whitelisted those ip address previously but getting same kind of error.

I think that shloud take some time for this.


#11

Approx 15 minutes, if may take to reflect!


#12

Is it working fine now?


#13

Yes thanks, After white listing ip on firewall then its works.

Great thanks To you :relaxed:


#14

Awesome :hushed:

Glad to see it’s working!