What's your biggest current challenge? Have your say in Community Polls along the right column.

Site Speed: Why do shopify insist on having blocking code in the head tag?

Solved

Site Speed: Why do shopify insist on having blocking code in the head tag?

Tristram
Shopify Partner
90 12 21

Does anyone have any currently working options for moving the absolute dogs breakfast that is "content_for_header" to the end of the body tag?

DigitalConsultant.xyz
Accepted Solution (1)

oreoorbitz
Shopify Partner
261 31 133

This is an accepted solution.

You can use {% capture header_content%}content_for_header{% endcapture %} then put header_content at the bottom of the body.

However, be ready for unexpected results depending on what apps and features you have.

Available for pagespeed consulting
https://www.upwork.com/freelancers/~01a19b6cd90193f4f6?viewMode=1&s=1017484851352698949

View solution in original post

Replies 3 (3)

oreoorbitz
Shopify Partner
261 31 133

This is an accepted solution.

You can use {% capture header_content%}content_for_header{% endcapture %} then put header_content at the bottom of the body.

However, be ready for unexpected results depending on what apps and features you have.

Available for pagespeed consulting
https://www.upwork.com/freelancers/~01a19b6cd90193f4f6?viewMode=1&s=1017484851352698949
Tristram
Shopify Partner
90 12 21

I am SOOO glad my first reply wasn't "use {{this}} app" I would have probably gone postal.

I appreciate your help!

 

DigitalConsultant.xyz
hamza3333
Visitor
1 0 0

I think the responsiveness of this website is more important