Skip to content
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

Delay execution of blink.js while document loads #310

Merged
merged 1 commit into from
Jun 20, 2023

Conversation

mosullivan93
Copy link
Contributor

After the first window, I found that the callback for window creation was being executed quickly enough that the initwebio!(w) method is triggered before the page has fully loaded (and hence before webio exists). Adding the defer attribute to the blink.js script ensures it won't be executed until after the browser has had a chance to load in the webio.bundled.js package.

Fixes Blink.jl#300, WebIO.jl#505, and PlotlyJS.jl#460.

@mzaffalon
Copy link

Will this PR be merged?

@mosullivan93
Copy link
Contributor Author

I practically forgot about this because I was just using my fork instead, but I haven't been working with Blink for a while anyway. I dropped a message in the gizmos channel on Slack so hopefully someone can have a look at these changes again soon.

@mzaffalon
Copy link

mzaffalon commented Jun 20, 2023

Thank you for taking the time to fix it. I am stuck with WebIO v0.8.17 otherwise.
I just checked and your fix works for me too.

@pfitzseb pfitzseb merged commit 63089ff into JuliaGizmos:master Jun 20, 2023
@mzaffalon
Copy link

@pfitzseb Will you please tag a new version?

@mosullivan93 mosullivan93 deleted the callback-deferral branch July 3, 2023 06:44
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.

Blink 0.12.6 breaks PlotlyJS
3 participants