question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

makeDOMDriver does not handle being called before DOM Ready

See original GitHub issue

From @WorldMaker on October 20, 2015 16:19

I created a test bundle of all my scripts (using jspm bundle-sfx if you are curious, but that shouldn’t matter) and when attempting to run as a bundle I hit the case where the browser was running the makeDOMDriver function prior to the DOM Ready. (Interestingly the DOM in this case was just the single DIV I’m currently using as a container, so kind of amazing the browsers manage to run the scripts before evaluating the DIV…)

Does it make sense for makeDOMDriver to handle the case where it is being called before DOM Ready?

Copied from original issue: cyclejs/cycle-dom#56

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:17 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
staltzcommented, Jan 20, 2017

Fixed finally in the unified branch. Not yet released.

1reaction
artfuldevcommented, Sep 18, 2016

if this is still a bug I can work on this…

Read more comments on GitHub >

github_iconTop Results From Across the Web

cyclejs/cyclejs - Gitter
But i see an error at first when try to node app.js: Object is not defined at Object.makeDOMDriver. Laszlo Korte. @laszlokorte. Feb 22...
Read more >
How to execute javascript after DOM is loaded in cycle.js
One way (using CycleJS with xstream) to execute JS code once after the DOM is ready is to run a (otherwise) non-operative observable....
Read more >
Releases - Cycle - JS.ORG
The DOM driver now simulates event bubbling by itself, and does not use the native browser event bubbling mechanism any more to simplify...
Read more >
How to wait for the DOM ready event in plain JavaScript
for example if I'm adding the event listener inside a loop and I don't really know what this will be when the event...
Read more >
cycle-onionify - npm
DOM : vdom$, ... Onionify is a component wrapper, not a driver. ... Import and call onionify on your main function (the top-most...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found