Add jsdelivr-auto-fallback to hexo site automatically. Read more about 'jsdelivr-auto-fallback'.
npm i hexo-filter-jsdelivr-auto-fallback
jsdelivr_auto_fallback:
enable: true
add_defer: true
dest_list:
- cdn.jsdelivr.net
- fastly.jsdelivr.net
- gcore.jsdelivr.net
- enable - Enable the plugin. Default value is
false
. - add_defer - Add a
defer
attribute to eachscript
tag. Default value isfalse
.- Set to
true
if thesrc
of thescript
tag containscdn.jsdelivr.net
.
- Set to
- dest_list - Destination domain list.
cdn.jsdelivr.net
must be placed first.
Copyright (c) 2022 Pipecraft. Licensed under the MIT license.