Skip to content

Commit

Permalink
perf: dynamically import SoundBar
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubh Porwal committed Nov 14, 2022
1 parent 1624a25 commit 4029983
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion components/Header/Header.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import Image from "next/image";
import dynamic from "next/dynamic";
import Fade from "react-reveal/Fade";
import SoundBar from "./SoundBar/SoundBar";

const SoundBar = dynamic(() => import("./SoundBar/SoundBar"));

const Header = ({ children }) => {
return (
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"bad-words": "^3.0.4",
"gsap": "^3.8.0",
"lottie-web": "^5.8.1",
"next": "latest",
"next": "12.0.1",
"next-pwa": "^5.4.4",
"react": "^17.0.2",
"react-dom": "^17.0.2",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3645,7 +3645,7 @@ next-pwa@^5.4.4:
workbox-webpack-plugin "^6.4.2"
workbox-window "^6.4.2"

next@latest:
next@12.0.1:
version "12.0.1"
resolved "https://registry.yarnpkg.com/next/-/next-12.0.1.tgz#7b82a73bc185bfda7372e7e8309f9b38e6be9cb0"
integrity sha512-4MNXAbD9+Tmtejg0TOKbaP52Cgu4mIn2ejKMLHWV0acxWGkkcE7QvdZwvg5pkg3fQBMrgucOxxtmw4D7yWaZvg==
Expand Down

1 comment on commit 4029983

@vercel
Copy link

@vercel vercel bot commented on 4029983 Nov 14, 2022

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.