1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

refactor(core): optimize image loading

- JavaScript runs so fast that LQIP will never be detected
- Increase the running priority of image processing in posts

Enhancement for #1267
This commit is contained in:
Cotes Chung
2023-09-29 05:07:03 +08:00
parent b489da89ca
commit e3b01636ac
4 changed files with 56 additions and 24 deletions

View File

@@ -71,9 +71,9 @@ a {
img {
max-width: 100%;
height: auto;
transition: all 0.7s ease-in-out;
transition: all 0.35s ease-in-out;
&[data-lqip='true'] {
.blur & {
$blur: 20px;
-webkit-filter: blur($blur);