Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions emanote/src/Emanote/View/Common.hs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,12 @@ commonSplices withCtx model meta routeTitle = do
<> ".forEach(s => s.setAttribute('im-preserve', 'true'));"
<> "});"
H.script $ H.toHtml preserveScript
-- Tailwind's browser CDN installs a document-wide MutationObserver.
-- Ema's script reloader would otherwise execute it again on every
-- morph, multiplying observers and making morph navigation wait behind
-- repeated Tailwind rebuilds before EMAHotReload is observable.
H.script
! H.dataAttribute "ema-skip" "true"
! A.src (H.toValue localCdnUrl)
$ mempty

Expand Down
Loading