minimal-mistakes icon indicating copy to clipboard operation
minimal-mistakes copied to clipboard

Preload Header Overlay Images

Open SocksTheWolf opened this issue 6 months ago • 1 comments
trafficstars

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.

SocksTheWolf avatar May 22 '25 06:05 SocksTheWolf

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.

iBug avatar Jun 15 '25 16:06 iBug