discourse/app
Alan Guo Xiang Tan 239b70342f
PERF: Remove unnecessary <link rel="preload"> for theme javascript (#26220)
This is a follow up to e2da72b76c.

Why this change?

According to https://web.dev/articles/preload-critical-assets,

> By preloading a certain resource, you are telling the browser that you would like to fetch it sooner than the browser would otherwise discover it because you are certain that it is important for the current page.

The preload resource hint is meant to tell the browser to fetch
resources that it would not discover upfront or early. However, we are
not using it the right way because we are literally adding the resource
hint right before a `<script>` tag which means the browser would have
discovered the resource even without the resource hint.

What does this change do?

This commit removes the preload resource hint which are added right
before script tags since the optimization here is highly questionable at the expense of making
our initial DOM larger.
2024-03-19 07:03:49 +11:00
..
assets FEATURE: add language picker for theme translations in admin UI (#26150) 2024-03-18 12:00:28 -04:00
controllers PERF: Fix N+1 when searching categories (#26223) 2024-03-18 19:01:17 +02:00
helpers PERF: Remove unnecessary <link rel="preload"> (#26219) 2024-03-18 20:07:29 +08:00
jobs DEV: Rename problem check jobs to avoid namespace clashes (#26073) 2024-03-07 12:26:58 +08:00
mailers FIX: Add higher read & open timeouts for group SMTP emails (#24593) 2023-11-28 15:32:59 +10:00
models PERF: Remove unnecessary <link rel="preload"> for theme javascript (#26220) 2024-03-19 07:03:49 +11:00
serializers DEV: Dedicated route for current user notification counts (#26106) 2024-03-15 12:08:37 -04:00
services FIX: Amend broken Mailgun API key check (#26206) 2024-03-18 09:10:30 +10:00
views DEV: update theme-qunit to work with strict-dynamic CSP (#26053) 2024-03-06 13:01:23 +00:00