Related to:
- DEV: Prevent videos from preloading metadata by oblakeerickson · Pull Request #23807 · discourse/discourse · GitHub
- DEV: Show a loading spinner on video placeholders by oblakeerickson · Pull Request #24039 · discourse/discourse · GitHub
Here is a small video showing the issue:
It looks like removing the click listener here doesn’t work. The next time a click happens, the video-placeholder-container doesn’t exist anymore:
Probably because of bind usage here:
Maybe an easy solution would be to use { once: true } in addEventListener instead?