FROM CACHE - en_header

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

Solved
Tristram
Shopify Partner
84 11 8

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)

Accepted Solutions
oreoorbitz
Shopify Partner
213 26 123

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 3 (3)
oreoorbitz
Shopify Partner
213 26 123

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/
Tristram
Shopify Partner
84 11 8

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
New Member
1 0 0

I think the responsiveness of this website is more important