DEV Community

Nick Milillo
Nick Milillo

Posted on

Nuxt3 CSR Delayed Hydration

Are there any strategies for delaying certain scripts from running when deploying in CSR mode?

I deploy my front end to AWS S3 using SSR False.

PageSpeed is telling me my site is a little slow, however I've optimised and converted all my base images to webp.

There are certain JavaScripts that could be delayed however delaying them using nuxt-delay-hydration wont work due to being CSR.

Thanks

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs