Conversation
🦋 Changeset detectedLatest commit: 7528bca The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
depends on #2140 |
✅ Deploy Preview for patternfly-elements ready!
_To edit notification comments on pull requests, go to your Netlify site settings. |
brianferry
left a comment
There was a problem hiding this comment.
Looks good to me, definitely noticing the improvements locally. Took around 10s to run pre commits and afterwards less than a second.
|
Only thing I noticed was the performance demo on the preview doesn't look like it can find the module for |
|
yeah something fishy is going on: view-source:https://deploy-preview-2141--patternfly-elements.netlify.app/components/tooltip/demo/performance I'm not satisfied with the demo stuff. Might be best to require demos to be |
What I did
I identified a performance issue with tooltip, which blocks the main thread for about 200ms for each tooltip added to the dom. This PR defers initializing popperjs until the tooltip is first show. Rendering 3000 tooltip elements on a page went from 40s-180s to ~5s.
This should be considered a hotfix patch until we can replace popper with something more modern: floating-ui or our own homebrew.
Testing Instructions