Skip to content

[6.x] Legacy Javascript Compatibility#18618

Draft
brianjhanson wants to merge 11 commits into6.xfrom
feature/js-compat
Draft

[6.x] Legacy Javascript Compatibility#18618
brianjhanson wants to merge 11 commits into6.xfrom
feature/js-compat

Conversation

@brianjhanson
Copy link
Copy Markdown
Contributor

@brianjhanson brianjhanson commented Mar 24, 2026

  • Makes the legacy Craft.* available everywhere. If you're calling it from Vue code you do have to use window.Craft at the moment
  • Tailwind reset styles are scoped to .slideout-container at the moment.
  • Inline scripts registerred with {% js %} are now rendered with type="module" so we can make sure that when they're injected via appendBodyHtml we can make sure they're executed after any scripts with a src attribute have been loaded. This feels like it could cause some unwanted side effects, so I need to make sure things look good before merging.

To-Do

  • Make sure legacy pages are working as expected
  • Form submissions and the like
  • Abstract away the legacy window.Craft.Slideout calls a bit

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