ded / domready

lets you know when the dom is ready
MIT License
874 stars 129 forks source link

Doesn't work for server-side rendering #54

Closed osartun closed 7 years ago

osartun commented 7 years ago

I have an app that uses SSR, but the domready package didn't work as document isn't defined on the server. That's why it fails on line 13:

    , doc = document

Instead it should check if document is defined.

osartun commented 7 years ago

I forked this repo and applied the necessary changes and created pull request https://github.com/ded/domready/pull/55 to solve this issue.

osartun commented 7 years ago

The PR was merged, so this issue can be closed then https://github.com/ded/domready/pull/55#event-1209259868