Merge perf/frontend-optimizations: incremental dev + photo LCP hint
Build & Deploy / build-and-deploy (push) Successful in 2m24s
Build & Deploy / build-and-deploy (push) Successful in 2m24s
This commit is contained in:
@@ -73,7 +73,7 @@ withBlogSidebar: true
|
|||||||
{% if photoUrl and photoUrl[0] != '/' and 'http' not in photoUrl %}
|
{% if photoUrl and photoUrl[0] != '/' and 'http' not in photoUrl %}
|
||||||
{% set photoUrl = '/' + photoUrl %}
|
{% set photoUrl = '/' + photoUrl %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<img src="{{ photoUrl }}" alt="{{ img.alt | default('Photo from: ' + title) }}" class="u-photo rounded-lg max-w-full" loading="lazy" eleventy:ignore>
|
<img src="{{ photoUrl }}" alt="{{ img.alt | default('Photo from: ' + title) }}" class="u-photo rounded-lg max-w-full"{% if loop.first %} fetchpriority="high"{% else %} loading="lazy"{% endif %} eleventy:ignore>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build:og": "node lib/og-cli.js content ${OG_CACHE_DIR:-.cache/og} 'giersig.'",
|
"build:og": "node lib/og-cli.js content ${OG_CACHE_DIR:-.cache/og} 'giersig.'",
|
||||||
"build": "eleventy",
|
"build": "eleventy",
|
||||||
"dev": "eleventy --serve --watch",
|
"dev": "eleventy --serve --watch --incremental",
|
||||||
"build:css": "postcss css/tailwind.css -o css/style.css",
|
"build:css": "postcss css/tailwind.css -o css/style.css",
|
||||||
"check:upstream-widgets": "node scripts/check-upstream-widget-drift.mjs",
|
"check:upstream-widgets": "node scripts/check-upstream-widget-drift.mjs",
|
||||||
"check:upstream-widgets:strict": "node scripts/check-upstream-widget-drift.mjs --strict",
|
"check:upstream-widgets:strict": "node scripts/check-upstream-widget-drift.mjs --strict",
|
||||||
|
|||||||
Reference in New Issue
Block a user