mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 20:24:05 -06:00
2457553d0a
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. |
||
---|---|---|
.. | ||
_head.html.erb | ||
_noscript_footer.html.erb | ||
_noscript_header.html.erb | ||
application.html.erb | ||
crawler.html.erb | ||
email_template.html.erb | ||
embed.html.erb | ||
ember_cli.html.erb | ||
finish_installation.html.erb | ||
no_ember.html.erb | ||
publish.html.erb |