discourse/app/views/layouts
Joe cfde4419f5
DEV: Preload CSS in the `<head>` (#17322)
This commit adds preload links for core/plugin/theme CSS stylesheets in the head.

Preload links are non-blocking and run in parallel. This means that they should have already been downloaded by the time we use the actual stylesheets (in the <body> tag).

Google is currently complaining about this here and this PR will address that warning.

This commit will also fix an issue in the splash screen where it sometimes doesn't respect the theme colors - causing a slightly jarring experience on dark themes.

Note that I opted not to add new specs because the underlying work required already has a lot of coverage. The new methods only change the output HTML so we can chuck that in the document <head>

This change also means that we can make all the stylesheets non-render blocking, but that will follow in a separate commit.
2022-07-05 00:23:09 +08:00
..
_head.html.erb Replace `base_uri` with `base_path` (#10879) 2020-10-09 12:51:24 +01:00
_noscript_footer.html.erb UX: Make header/footer HTML consistent for crawler and noscript 2022-04-07 15:27:06 +01:00
_noscript_header.html.erb UX: Make header/footer HTML consistent for crawler and noscript 2022-04-07 15:27:06 +01:00
application.html.erb DEV: Preload CSS in the `<head>` (#17322) 2022-07-05 00:23:09 +08:00
crawler.html.erb UX: Make header/footer HTML consistent for crawler and noscript 2022-04-07 15:27:06 +01: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 Code review comments. 2021-06-21 11:06:58 +08:00
ember_cli.html.erb remove some hardcoded 'localhost's from dev environment (#14801) 2021-11-03 11:26:44 +08:00
finish_installation.html.erb DEV: Make wizard an ember addon (#17027) 2022-06-17 14:50:21 +02:00
no_ember.html.erb DEV: adds server:after-body-open (#14106) 2021-08-24 14:35:44 +02:00
publish.html.erb FIX: adds google tracking to page publishing (#12090) 2021-02-15 19:00:35 +01:00