discourse/app/views/layouts
David Taylor 2457553d0a
FIX: Avoid flash-of-unstyled-content in Safari with bug workaround (#25462)
Safari has a bug which means that scripts with the `defer` attribute are executed before stylesheets have finished loading. This is being tracked at https://bugs.webkit.org/show_bug.cgi?id=209261.

This commit works around the problem by introducing a no-op inline `<script>` to the end of our HTML document. This works because defer scripts are guaranteed to run after inline scripts, and inline scripts are guaranteed to run after any preceding stylesheets.

Technically we only need this for Safari. But given that the cost is so low, it makes sense to include it everywhere rather than incurring the complexity of gating it by user-agent.
2024-01-29 17:20:44 +00:00
..
_head.html.erb FIX: Add theme-color <meta> tag when a dark scheme is selected (#18747) 2022-10-26 07:18:05 +03:00
_noscript_footer.html.erb PERF: Cache ToS and Privacy Policy paths (#21860) 2023-06-07 21:31:20 +03:00
_noscript_header.html.erb DEV: remove H1 from crawler view header (#18201) 2022-09-12 10:46:00 -04:00
application.html.erb FIX: Avoid flash-of-unstyled-content in Safari with bug workaround (#25462) 2024-01-29 17:20:44 +00:00
crawler.html.erb UX: Style edits (#19927) 2023-02-15 11:02:16 -06:00
email_template.html.erb Revert "Revert "Merge branch 'master' of https://github.com/discourse/discourse"" 2020-05-23 00:56:13 -04:00
embed.html.erb FEATURE: Allow embedded view to include a header (#20150) 2023-02-06 11:10:50 -05:00
ember_cli.html.erb DEV: Document ALLOW_EMBER_CLI_PROXY_BYPASS in error page (#19315) 2022-12-05 13:44:16 +00:00
finish_installation.html.erb FEATURE: revamped wizard (#17477) 2022-07-27 06:53:01 +05:30
no_ember.html.erb DEV: adds server:after-body-open (#14106) 2021-08-24 14:35:44 +02:00
publish.html.erb FIX: Broken hashtags on embed and publish pages (#24210) 2023-11-02 11:43:55 +10:00