Skip to content

Commit

Permalink
Merge pull request #483 from ruisaraiva19/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
ruisaraiva19 authored Jul 7, 2022
2 parents 37a1af5 + a2d70d7 commit f14fc53
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import Document, { Html, Head, Main, NextScript } from 'next/document'
class MyDocument extends Document {
render() {
return (
<Html lang="en">
<Html lang="en" className="preload">
<Head />
<body className="preload">
<script src="/js/noflash.js" />
<body>
<script src="/js/noflash.js?v1" />
<Main />
<NextScript />
<script src="/js/onload.js" />
<script src="/js/onload.js?v1" />
</body>
</Html>
)
Expand Down
2 changes: 1 addition & 1 deletion public/js/onload.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;(function () {
window.addEventListener('load', function () {
document.body.classList.remove('preload')
document.documentElement.classList.remove('preload')
})
})()

0 comments on commit f14fc53

Please sign in to comment.