capo.jsimplementation for Nuxt 3
Capo.js is a small snippet that identifies ways to boost the (perceived) performance of your page, by changing the order of elements in the page's <head> section.
<head> in dev mode and when prerendering pagesInstall and add nuxt-capo to your nuxt.config.
npx nuxi@latest module add capo
export default defineNuxtConfig({
modules: ['nuxt-capo'],
})
That's it! You should now see debugging info and suggestions when server rendering your routes
![]() | ![]() |
Thanks to @rviscomi for making capo.js!
corepack enable (use npm i -g corepack for Node.js < 16.10)pnpm installpnpm dev:preparepnpm dev to start playground in development modeMade with ❤️
Published under the MIT License.