Solved

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

Tristram
Shopify Partner
90 12 17

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
238 29 128

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 freelance. I specialize in speed improvement and theme development.
https://www.upwork.com/fl/orionholmes



You can also contact me directly if you prefer.

View solution in original post

Replies 3 (3)

oreoorbitz
Shopify Partner
238 29 128

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 freelance. I specialize in speed improvement and theme development.
https://www.upwork.com/fl/orionholmes



You can also contact me directly if you prefer.
Tristram
Shopify Partner
90 12 17

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