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] [plugins.inputs]
output_path = "reports/lighthouse/index.html" 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 # URLs
### ###

View file

@ -56,7 +56,7 @@
<script type="application/ld+json"> <script type="application/ld+json">
{% jsonLd meta, type, tags %} {% jsonLd meta, type, tags %}
</script> </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> <noscript>
<style>.client-side {display:none}</style> <style>.client-side {display:none}</style>
</noscript> </noscript>

View file

@ -17,7 +17,7 @@ meta:
image: image:
src: https://coryd.dev/assets/img/avatar.webp 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> <style>
:root { :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"; --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> </style>
<div id="search" class="search"></div> <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" %} {% include "popular-posts.liquid" %}