Skip to content

fix: remove preload option causing animations to break in production#2904

Draft
xseman wants to merge 1 commit into
basecamp:mainfrom
xseman:production-animations
Draft

fix: remove preload option causing animations to break in production#2904
xseman wants to merge 1 commit into
basecamp:mainfrom
xseman:production-animations

Conversation

@xseman
Copy link
Copy Markdown

@xseman xseman commented May 23, 2026

preload: /\/assets\// option in Turbo.offline.start() was injecting

tags for all assets without the required as="style" attribute for CSS files. In production, this caused browsers to treat stylesheet preloads as generic resources, breaking CSS @Keyframes animations. Stylesheets are already loaded correctly via stylesheet_link_tag, so the preload optimization was redundant.

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.

1 participant