Skip to content

Commit

Permalink
perf: try boosting perf on mobile devices
Browse files Browse the repository at this point in the history
  • Loading branch information
okikio authored Oct 24, 2021
1 parent 1a7692f commit 3377f7f
Show file tree
Hide file tree
Showing 6 changed files with 120 additions and 115 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"browser-builtins": "^3.3.1",
"buffer": "^6.0.3",
"countapi-js": "^1.0.2",
"esbuild-wasm": "^0.13.8",
"esbuild-wasm": "^0.13.9",
"events": "^3.3.0",
"highlight.js": "^11.3.1",
"memfs": "^3.3.0",
Expand All @@ -65,7 +65,7 @@
"browser-sync": "^2.27.5",
"commitizen": "^4.2.4",
"del": "^6.0.0",
"esbuild": "^0.13.8",
"esbuild": "^0.13.9",
"esbuild-plugin-solid": "^0.4.0",
"fibers": "^5.0.0",
"gulp": "^4.0.2",
Expand Down
136 changes: 68 additions & 68 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/pug/layouts/layout.pug
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ html.dark(lang="en")
link(rel='stylesheet' href='/css/app.min.css')
block styles

script(src='/js/theme.min.js' type='module' async importance="high")

-
let defaults = {
url: "/",
Expand Down Expand Up @@ -92,7 +90,9 @@ html.dark(lang="en")
block footer
+footer

script(src="https://cdn.polyfill.io/v3/polyfill.min.js?features=default,es2015,es2018,Array.prototype.includes,Promise,Intl" async importance="high")
//- script(src="https://cdn.polyfill.io/v3/polyfill.min.js?features=default,es2015,es2018,Array.prototype.includes,Promise,Intl" async importance="high")
script(src='/js/theme.min.js' type='module' async importance="high")

script(src="/js/load-webanimation-polyfill.min.js" type='module' async)
script(src='/js/critical.min.js' type='module' async)

Expand Down
Loading

1 comment on commit 3377f7f

@vercel
Copy link

@vercel vercel bot commented on 3377f7f Oct 24, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.