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

@ -36,9 +36,3 @@ const { image = {}, sources = [] } = picture || {}
<img {...image} {loading} {decoding} {alt} class={className} /> <img {...image} {loading} {decoding} {alt} class={className} />
</picture> </picture>
} }
<style>
img {
content-visibility: auto;
}
</style>

View File

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

View File

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