discourse/app/views/common
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
..
_discourse_preload_stylesheet.html.erb DEV: Preload CSS in the <head> (#17322) 2022-07-05 00:23:09 +08:00
_discourse_publish_stylesheet.html.erb Code review comments. 2021-06-21 11:06:58 +08:00
_discourse_splash.html.erb UX: Use discourse-ready as a baseline for removing the splash (#17297) 2022-07-01 21:54:38 +08:00
_discourse_stylesheet.html.erb DEV: Make wizard an ember addon (#17027) 2022-06-17 14:50:21 +02:00
_google_tag_manager_body.html.erb FIX: update Google Tag Manager javascript 2018-04-03 14:22:06 -04:00
_google_tag_manager_head.html.erb FEATURE: Implement nonces for Google Tag Manager integration (#12531) 2021-03-26 11:19:31 -04:00
_google_universal_analytics.html.erb FEATURE: Add Google Universal Analytics v4 as an option (#11123) 2020-11-06 14:15:36 -06:00
_second_factor_backup_input.html.erb FIX: Allow the app to generate and accept longer backup codes (#8761) 2020-01-21 14:28:31 +00:00
_second_factor_text_field.html.erb FEATURE: Second factor backup 2018-06-28 10:12:32 +02:00