Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicated inlined css #14993

Closed
kstraszewski opened this issue Sep 21, 2022 · 1 comment
Closed

Duplicated inlined css #14993

kstraszewski opened this issue Sep 21, 2022 · 1 comment

Comments

@kstraszewski
Copy link

Environment

Nuxi 3.0.0-rc.11 19:06:28
RootDir: /Users/konradstraszewski/WebstormProjects/lendi-b2c 19:06:29
Nuxt project info: (copied to clipboard) 19:06:29


  • Operating System: Darwin
  • Node Version: v16.14.0
  • Nuxt Version: 3.0.0-rc.11
  • Nitro Version: 0.5.4
  • Package Manager: npm@8.19.0
  • Builder: vite
  • User Config: app, ssr, experimental, postcss, nitro, css, meta, modules, image, unocss, publicRuntimeConfig, vite, nuxtTypedRouter, plugins
  • Runtime Modules: nuxt-typed-router@1.2.2, @unocss/nuxt@0.45.22, @nuxt/image-edge@1.0.0-27707824.1028381, nuxt-jsonld@2.0.5, @pinia/nuxt@0.4.1, @vueuse/nuxt@8.9.2, ()
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/github-w6cj1g-1libb7?file=pages%2Findex.vue

  1. nuxt build && nuxt preview

Describe the bug

In production mode i've noticed that scoped css from index.vue are loaded twice. You end up with a inlined CSS in your HTML and also the same CSS is loaded by the CSS chunk from page. You can see that test-class added in pages/index is loaded in inlined HTML and also loaded on the end in index.css.

You can see this behavior more clearly here: https://qa.lendi.pl/. Let get this blue arrow for example it has best-offer-arrow class. It is declared in pages/index.vue. It is loaded inlined (elements -> ctrl + f -> best-offer-arrow), and also it's loaded in index.css. It affects performance of the site

Additional context

No response

Logs

No response

@danielroe
Copy link
Member

Let's track in #14953.

@danielroe danielroe closed this as not planned Won't fix, can't repro, duplicate, stale Sep 21, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants