š New Release: 2.0.0-beta.2
Targets Flarum 2.x
Released by: @IanM
Release URL: imorland/html-headreleases/tag/2.0.0-beta.2
Notes
This release is a significant rewrite of the extension. The previous single-field raw HTML textarea has been replaced with a structured, type-aware system supporting five tag types ā meta, link, script, style, and raw HTML ā each with dedicated form fields and appropriate options. Items can now be injected into either the <head> or before </body>, and targeted to the forum frontend, the admin panel, or both. A drag-to-reorder handle controls injection order. On the performance side, rendered HTML is now cached at save time rather than on every page request, eliminating database queries from the hot path. Cross-origin <link> and <script> tags ā including those inside raw HTML items ā automatically receive preconnect and dns-prefetch hints to warm the connection before the browser needs it. The create/edit modal includes a live HTML preview that updates as fields are filled in, along with contextual help text for less obvious options such as fetchpriority, as, defer vs async, and crossorigin. Existing raw HTML items are automatically migrated to the new format where possible, and continue to work unchanged where they cannot be parsed.
Full Changelog: imorland/html-head2.0.0-beta.1 ā 2.0.0-beta.2