Skip to content

Conversation

@mister-ben
Copy link
Contributor

@mister-ben mister-ben commented Mar 25, 2024

Reduces the updates and resultant DOM changes in the plugin lifecycle.

  • On 'loadstart, update the button menu rather than disposing and re-creating the button
  • onPlayerReady() returned a dispose() function which is now unused and no longer returned.
  • Expose it player.qualityMenu.dispose() instead so external code can dispose the menu if needed.
  • Debounces update() as levels are generally added in quick succession.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant