Remove defer attribute from standalone <script> tags

This commit is contained in:
Helen Chong 2024-06-23 16:17:00 +08:00
parent 1d8909ab92
commit 9d44e34113
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@
} }
</style> </style>
<script defer> <script>
const hero = document.querySelector(".hero"); const hero = document.querySelector(".hero");
const heroTopBarEl = document.querySelector(".hero__top-bar"); const heroTopBarEl = document.querySelector(".hero__top-bar");
const headerImgEl = document.querySelector(".hero__img"); const headerImgEl = document.querySelector(".hero__img");

View File

@ -137,7 +137,7 @@ https://kalechips.net/projects/snippets/burger #}
} }
</style> </style>
<script defer> <script>
window.onload = () => { window.onload = () => {
const navbarBurger = document.querySelector(".navbar__burger"); const navbarBurger = document.querySelector(".navbar__burger");