Skip to content

Commit e7ce805

Browse files
committed
preload lettering.js
1 parent 0b18f38 commit e7ce805

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docusaurus.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,10 @@ module.exports = {
182182
scripts: [
183183
'https://cdn.jsdelivr.net/npm/lozad/dist/lozad.min.js',
184184
'https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js',
185-
'https://cdnjs.cloudflare.com/ajax/libs/lettering.js/0.6.1/jquery.lettering.min.js',
185+
{
186+
href: 'https://cdnjs.cloudflare.com/ajax/libs/lettering.js/0.6.1/jquery.lettering.min.js',
187+
rel: 'preload',
188+
},
186189
'https://cdn.jsdelivr.net/npm/video.js/dist/video.min.js',
187190
'/script/settheme.js',
188191
],
@@ -195,6 +198,6 @@ module.exports = {
195198
{
196199
href:'https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap',
197200
rel:'preload',
198-
}
201+
},
199202
]
200203
};

0 commit comments

Comments
 (0)