carbon-addons-iot-react icon indicating copy to clipboard operation
carbon-addons-iot-react copied to clipboard

[Table] Loading storybook mdx file is slow

Open bjornalm opened this issue 2 years ago • 2 comments

What package is this for?

  • [x] React
  • [ ] Angular

Describe the bug

Loading the table.mdx is really slow.

I think this is due to the new mdx imports (where smaller mdx-files are imported to table.mdx) that happens at runtime. Not sure if this is only a problem in DEV.

To Reproduce

Steps to reproduce the behavior:

This is noticeable when it is loaded from the Playground story by clicking the "Docs" tab or from the sub mdx files and when clicking links leading back to the main table.mdx.

Expected behavior

Faster loading

Environment/versions:

  • OS: [e.g. MacOS, Windows]
  • Browser: [e.g. chrome, safari]
  • carbon-addons-iot-react version: [e.g. v2.60.0]

Additional context

If applicable, add screenshots to help explain your problem.

Add any other context about the problem here.

Specific timeline issues / requests

Do you want this work within a specific time period? Is it related to an upcoming release?

NB: The core contributors will try to work with your timeline, but it's not guaranteed. The earlier you make a request in advance of a desired delivery date, the better!

bjornalm avatar Feb 17 '22 20:02 bjornalm

@bjornalm If we are seeing it on the deploy preview then it is also slow in production.

davidicus avatar Feb 22 '22 14:02 davidicus

@bjornalm If we are seeing it on the deploy preview then it is also slow in production.

True, it is loading faster in the deploy preview... but it is not blazing fast there either and probably will ger slower the more docs we add and link. I think we need to keep an eye on this.

bjornalm avatar Feb 22 '22 17:02 bjornalm