NUKnightLab / NUKnightLab/TimelineJS3
Implement cross-window messaging for iframes
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 3.2k
- Forks
- 645
- PR merge metrics
- No merged PRs in 30d
Description
A Zendesk user has a Timeline which uses an iframe to embed an animation. In the current situation, the animation finishes playing before most users advance to the slide where it is embedded.
It seems we could use window.postMessage() to notify content of media type TL.Media.Iframe of events relating to the slide where it sits. It would leave users with an obligation to receive the messages and to control cross-origin issues, but it would at least make use cases like this possible.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the TL.Media.Iframe implementation and the slide-related events it can observe. Review the linked Window.postMessage() documentation and define how iframe content receives those events, including the stated cross-origin considerations; done means iframe animations can respond to the relevant slide events.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100