Skip to content

Commit

Permalink
Remove defer attribute (impact on mobile)
Browse files Browse the repository at this point in the history
  • Loading branch information
JuditKaramazov committed Jan 10, 2024
1 parent 1db2877 commit 70a98d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layouts/Base/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const { pageTitle } = Astro.props
---

<html lang="en">
<script is:inline defer>
<script is:inline>
const theme = localStorage.getItem('@karamablog/theme') || 'light'
document.documentElement.dataset.theme = theme
</script>
Expand Down

0 comments on commit 70a98d1

Please sign in to comment.