You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Multiple instances of the plugin could share some infos like the native scrollbar width so they don't need to calculate this individually.
Basically setting some data as static within the SimpleBar class.
The text was updated successfully, but these errors were encountered:
Good idea, accessing offsetWidth (which you have to do when measuring scrollbar width) triggers styles recalculation and it basically doubles the initialization time (if already have DOM ready, don't know what are the ratios if have to build DOM too). All other calculations and adding listeners are almost nothing next to it.
Multiple instances of the plugin could share some infos like the native scrollbar width so they don't need to calculate this individually.
Basically setting some data as static within the SimpleBar class.
The text was updated successfully, but these errors were encountered: