mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
FEATURE: try adding some preload hints for chrome
This commit is contained in:
parent
cfef100ed7
commit
5dd752877e
7 changed files with 21 additions and 20 deletions
|
@ -36,7 +36,7 @@ class Stylesheet::Manager
|
|||
builder = self.new(target, theme_key)
|
||||
builder.compile unless File.exists?(builder.stylesheet_fullpath)
|
||||
builder.ensure_digestless_file
|
||||
tag = %[<link href="#{builder.stylesheet_path}" media="#{media}" rel="stylesheet" data-target="#{target}"/>]
|
||||
tag = %[<link href="#{builder.stylesheet_path}" media="#{media}" rel="stylesheet" data-target="#{target}" rel="preload"/>]
|
||||
cache[cache_key] = tag
|
||||
|
||||
tag.dup.html_safe
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue