Skip to content

Split design system navigation JavaScript to own pack#7170

Merged
aduth merged 2 commits intomainfrom
aduth-split-navigation-component-pack
Oct 19, 2022
Merged

Split design system navigation JavaScript to own pack#7170
aduth merged 2 commits intomainfrom
aduth-split-navigation-component-pack

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Oct 19, 2022

🛠 Summary of changes

Removes "navigation" from default set of design system JavaScript components, instead initializing only where applicable. The "navigation" JavaScript is concerned with the side navigation flyout menu at small viewports, but this navigation is only rendered as part of the account_side_nav layout, which is not used in most critical paths (notably, sign in).

The effect is a reduction of total JavaScript size of the sign in page of ~8.2% (71.7kb to 65.8kb, gzipped and minified).

📜 Testing Plan

Ensure that side navigation continues to work as expected where applicable (e.g. account dashboard at mobile viewports).

aduth added 2 commits October 19, 2022 10:09
changelog: Internal, Performance, Reduce JavaScript bundle size in critical paths
Copy link
Contributor

@mitchellhenke mitchellhenke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏🏼

@aduth aduth merged commit 0a279e6 into main Oct 19, 2022
@aduth aduth deleted the aduth-split-navigation-component-pack branch October 19, 2022 14:39
This was referenced Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants