chore: optimization tweaks

This commit is contained in:
Cory Dransfeldt 2023-07-06 20:02:10 -07:00
parent 626cfde873
commit fa367b2445
No known key found for this signature in database
3 changed files with 17 additions and 3 deletions

View file

@ -6,6 +6,20 @@ package = "@netlify/plugin-lighthouse"
[plugins.inputs]
output_path = "reports/lighthouse/index.html"
###
# OPTIMIZATION
###
[build.processing]
skip_processing = false
[build.processing.css]
bundle = true
minify = true
[build.processing.js]
bundle = true
minify = true
[build.processing.images]
compress = true
###
# URLs
###

View file

@ -56,7 +56,7 @@
<script type="application/ld+json">
{% jsonLd meta, type, tags %}
</script>
<script defer data-domain="coryd.dev" src="/js/script.js"></script>
<script defer data-domain="coryd.dev" src="https://coryd.dev/js/script.js"></script>
<noscript>
<style>.client-side {display:none}</style>
</noscript>

View file

@ -17,7 +17,7 @@ meta:
image:
src: https://coryd.dev/assets/img/avatar.webp
---
<link href="/_pagefind/pagefind-ui.css" rel="stylesheet">
<link href="https://coryd.dev/_pagefind/pagefind-ui.css" rel="stylesheet">
<style>
:root {
--pagefind-ui-font: InterVariable, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
@ -35,5 +35,5 @@ meta:
}
</style>
<div id="search" class="search"></div>
<script src="/_pagefind/pagefind-ui.js" onload="new PagefindUI({ element: '#search', showImages: false });"></script>
<script src="https://coryd.dev/_pagefind/pagefind-ui.js" onload="new PagefindUI({ element: '#search', showImages: false });"></script>
{% include "popular-posts.liquid" %}