diff --git a/public/src/modules/helpers.js b/public/src/modules/helpers.js index 6592a1418b..e0ed7aa264 100644 --- a/public/src/modules/helpers.js +++ b/public/src/modules/helpers.js @@ -70,12 +70,13 @@ function buildLinkTag(tag) { var link = tag.link ? 'link="' + tag.link + '" ' : ''; var rel = tag.rel ? 'rel="' + tag.rel + '" ' : ''; + var as = tag.as ? 'as="' + tag.as + '" ' : ''; var type = tag.type ? 'type="' + tag.type + '" ' : ''; var href = tag.href ? 'href="' + tag.href + '" ' : ''; var sizes = tag.sizes ? 'sizes="' + tag.sizes + '" ' : ''; var title = tag.title ? 'title="' + tag.title + '" ' : ''; - return '\n\t'; + return '\n\t'; } function stringify(obj) { diff --git a/src/meta/tags.js b/src/meta/tags.js index 4044326079..d812191669 100644 --- a/src/meta/tags.js +++ b/src/meta/tags.js @@ -56,6 +56,10 @@ Tags.parse = async (req, data, meta, link) => { }, { rel: 'manifest', href: nconf.get('relative_path') + '/manifest.json', + }, { + rel: 'preload', + href: nconf.get('relative_path') + '/assets/js-enabled.css?' + (Meta.config['cache-buster'] ? '?' + Meta.config['cache-buster'] : ''), + as: 'style', }]; if (plugins.hasListeners('filter:search.query')) {