Fix some details for Lighthouse score

This commit is contained in:
prototypa
2022-09-05 23:43:56 -04:00
parent 30f79cc194
commit 9bbf15ea70
3 changed files with 8 additions and 8 deletions

View File

@ -35,10 +35,4 @@ const { image = {}, sources = [] } = picture || {}
<source {...attrs} {sizes} />)}
<img {...image} {loading} {decoding} {alt} class={className} />
</picture>
}
<style>
img {
content-visibility: auto;
}
</style>
}

View File

@ -14,7 +14,7 @@ const {
<Icon name={iconName} class={iconClass} optimize={false} />
</button>
<style is:global>
<style is:inline>
[data-aw-toggle-menu] path {
@apply transition;
}

View File

@ -18,3 +18,9 @@ const { meta = {} } = Astro.props;
<BasicScripts />
</body>
</html>
<style is:global>
img {
content-visibility: auto;
}
</style>