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

perf: Lazy load rehype-raw and react-markdown #29855

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

kgabryje
Copy link
Member

@kgabryje kgabryje commented Aug 5, 2024

SUMMARY

Lazy load rehype-raw and react-markdown libraries.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Notice that rehype-raw is now in a separate chunk instead of an entry, meaning that it will only load when there's a markdown component on a dashboard.

Before:

Screenshot 2024-08-05 at 15 50 10

After:

Screenshot 2024-08-05 at 15 33 45

TESTING INSTRUCTIONS

Dashboard should work fine with and without markdown components

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@dosubot dosubot bot added change:frontend Requires changing the frontend dashboard:performance Related to Dashboard performance labels Aug 5, 2024
@kgabryje kgabryje merged commit 5b5f448 into apache:master Aug 5, 2024
35 of 36 checks passed
WanjohiWanjohi pushed a commit to IDinsight/surveystream_superset_source that referenced this pull request Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change:frontend Requires changing the frontend dashboard:performance Related to Dashboard performance packages size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants