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

Solved
Tristram
New Member
2 0 0

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?

Accepted Solution (1)

Accepted Solutions
oreoorbitz
Shopify Partner
163 20 99

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

If your looking for a pagespeed solution for your Website, take a look at: https://renderbetter.com/

View solution in original post

Replies 2 (2)
oreoorbitz
Shopify Partner
163 20 99

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

If your looking for a pagespeed solution for your Website, take a look at: https://renderbetter.com/

View solution in original post

Tristram
New Member
2 0 0

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

I appreciate your help!