discourse/app
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
..
assets UX: add bg style to input field type number (#25460) 2024-01-29 10:51:12 -05:00
controllers DEV: Allow `run_second_factor!` to be used before login (#25420) 2024-01-29 12:28:47 +00:00
helpers FIX: Avoid flash-of-unstyled-content in Safari with bug workaround (#25462) 2024-01-29 17:20:44 +00:00
jobs FIX: export csv file failed message (#25443) 2024-01-26 11:16:02 -07:00
mailers FIX: Add higher read & open timeouts for group SMTP emails (#24593) 2023-11-28 15:32:59 +10:00
models DEV: Add admin warning for sites on Ember 3 (#25459) 2024-01-29 14:09:07 +00:00
serializers WIP: Experiemental Bulk Topic Actions Dropdown (#25245) 2024-01-25 09:12:06 -07:00
services DEV: Trigger DiscourseEvent on push notification send (#25375) 2024-01-22 15:30:35 -06:00
views FIX: Avoid flash-of-unstyled-content in Safari with bug workaround (#25462) 2024-01-29 17:20:44 +00:00