-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Upgrade sortablejs #15333
Upgrade sortablejs #15333
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to import Sortable directly in the code that uses it. Code splitting will do the rest.
Thanks for taking a look. I just tried that to see what happens. It would download sortable.js for anyone who visits a study page. Right now the Can change it if the other is preferred. |
It's important IMO that the dependency is only downloaded by people who can actually use it. Most study pages are loaded for viewer, not contributors. That includes broadcasts. |
Ok. I wanted to see if esbuild could just bundle a tiny slice of this module but apparently it's a monolith class anyway so we get the whole thing. Let's at least get rid of the shim But for those who prefer eating our own dogfood, I went ahead and added an There is also some unrelated, harmless refactoring of some names. But it should be uncontroversial. I hope you don't mind i pushed directly to your repo. |
sortablejs is used for drag+drop reordering of study chapters