Skip to content

Conversation

@SocksTheWolf
Copy link

@SocksTheWolf SocksTheWolf commented May 22, 2025

This is an enhancement or feature.

Summary

Header images are the most important thing outside of content. While this could also be done in the general custom header file, it's probably best the theme is practicing best practices. Be responsive for all users out of the box.

Adds a liquid check to inject a preload <link> tag with the overlay_image if it's specified.

Context

If the user has overlay images in their page header liquid, make it so we by default, preload those images immediately. This will make the page look responsive and clean.

Header images are the most important thing outside of content. While this could also be done in the general custom header file, it's probably best the theme is practicing best practices. Be responsive for all users out of the box.
@SocksTheWolf SocksTheWolf changed the title Preload Overlay Images Preload Header Overlay Images May 22, 2025
@iBug
Copy link
Collaborator

iBug commented Jun 15, 2025

The overlay image is specified in an inline style attribute within the HTML directly, so I'm not confident about how much this will help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants