mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add defer to apploader script
This commit is contained in:
parent
a9f57a479c
commit
33547e0d77
1 changed files with 6 additions and 1 deletions
|
@ -184,7 +184,12 @@ function copy(query) {
|
||||||
function injectBundle() {
|
function injectBundle() {
|
||||||
return src(options.injectBundle.query, { base: './src/' })
|
return src(options.injectBundle.query, { base: './src/' })
|
||||||
.pipe(inject(
|
.pipe(inject(
|
||||||
src(['src/scripts/apploader.js'], { read: false }, { base: './src/' }), { relative: true }
|
src(['src/scripts/apploader.js'], { read: false }, { base: './src/' }), {
|
||||||
|
relative: true,
|
||||||
|
transform: function (filepath) {
|
||||||
|
return `<script src="${filepath}" defer></script>`;
|
||||||
|
}
|
||||||
|
}
|
||||||
))
|
))
|
||||||
.pipe(dest('dist/'))
|
.pipe(dest('dist/'))
|
||||||
.pipe(browserSync.stream());
|
.pipe(browserSync.stream());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue