Commit dd84ad5
committed
Optimize the loading speed
- Add HTML, CSS and JavaScript minifier.
- Images
- Create “One-click Image Converter” (OCIC) to convert images to WebP
format.
- Convert all pictures in articles to WebP format. (The logo image was
manually compressed but remained to be PNG format.)
- Move the logo from `./source/images/` to
`./themes/wind/source/images/` in order to prevent it from being
converted.
- Remove `hexo-lazyload-image` and use `vanilla-lazyload` instead.
- Load all images lazily including the background photo. (Now, you
will see it blurred first and then become clear.)
- JavaScript
- Move the position of scripts in HTML pages closer to `</body>`.
- Load scripts other than jQuery asynchronously by dynamically
inserting them into the HTML DOM.
- Remove `fancybox` and use `medium-zoom` instead.
- Fonts
- Delay the loading of fonts for 3 seconds to try to avoid other
resources being blocked by them.
- Use English fonts on plain English text.
- Fix English fonts do not work.
- Fix twice redirection when visitors enter `Archives` through the
navigation bar.1 parent 3193d1a commit dd84ad5
File tree
51 files changed
+1404
-191
lines changed- ocic
- source
- _posts
- images
- kpw4
- personal-cloud-storage-with-cloudreve-and-aria2
- the-annual-review-of-2020
- the-blog-font-setting-scheme
- themes/wind
- layout
- _partial
- post
- scripts
- source
- css
- _partial
- images
- fancybox
- images
- js
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
51 files changed
+1404
-191
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments