Reduce the impact of third-party code Third-party code blocked the main thread for 540 ms

Keez
Tourist
4 0 1
Good Morning.
 
Could you give me advice on how to get rid of the below error in a page speed test.

Reduce the impact of third-party code Third-party code blocked the main thread for 540 ms
 
Third-party code can significantly impact load performance. Limit the number of redundant third-party providers and try to load third-party code after your page has primarily finished loading.
 
How do i load third-party code after the page has primarily finished loading?
 
Third-PartyTransfer SizeMain-Thread Blocking Time
Shopify
 Hosting
1,243 KiB
269 ms
208 KiB
269 ms
264 KiB
0 ms
246 KiB
0 ms
203 KiB
0 ms
87 KiB
0 ms
Other resources
235 KiB
0 ms
Google Tag Manager
 Tag-Manager
166 KiB
233 ms
91 KiB
137 ms
75 KiB
96 ms
Facebook
 Social
91 KiB
41 ms
/en_US/fbevents.js
(connect.facebook.net)
55 KiB
41 ms
36 KiB
0 ms
Google CDN
 Cdn
34 KiB
0 ms
…1.12.4/jquery.min.js
(ajax.googleapis.com)
34 KiB
0 ms
shop.app
3 KiB
0 ms
Google Analytics
 Analytics
0 KiB
0 ms
merchant-center-analytics.goog
Replies 2 (2)

PaulNewton
Shopify Partner
6274 572 1310

Try to narrow the scope of question to the minimum possible.

This is a common topic you can research as overall the question is to vague with to many steps to walk someone through on a forum post so you will only get vague overviews.

 

"How do i load third-party code after the page has primarily finished loading?"

Most of that code coming from shopify assets is injected by {{ content_for_header}} and is not mean to be modified by merchants. 

 

Disable as many apps affecting the frontend as possible such a shopify-chat.

 

Other scripts depend on how you've added them to the theme requiring either a different setup process or theme customization.

 

If you need an actual performance audit or theme customization then contact me by my email for services.
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org


Keez
Tourist
4 0 1

Hello Paul,

Thankyou for responding.

 

The website is prettymade.com.au