Skip to content

[Nuxt + Ant Design] On the first page load Layout and Sider rendering is too slow when use target: 'server' #2958

@Bac3Phi

Description

@Bac3Phi
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.6.4

Environment

"nuxt": "^2.14.0", "ant-design-vue": "^1.6.4",

Reproduction link

Edit on CodeSandbox

Steps to reproduce

As you can see. On the first page load a-layout-content rendering is too slow. when I use nuxt.config.js

mode:" universal ", target:" server ".

I think this error is caused by page loading too many stylesheets from ant-design.
Any solution to improve it? Thank you guys

What is expected?

I want to improve speed on target: 'server'

What is actually happening?

You can see my screenshot via https://i.gyazo.com/8f19993b84ce32c19fc92980f0fe4d12.gif

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions