elm-lang / elm-reactor

Interactive development tool that makes it easy to develop and debug Elm programs.
BSD 3-Clause "New" or "Revised" License
428 stars 63 forks source link

Load external resources last #197

Closed lydell closed 7 years ago

lydell commented 8 years ago

This make elm-reactor usable on crappy connections.

Loading external resources blocks page rendering. On a bad connection, this means having to wait for purely visual enhancements such as fonts and syntax highlighting before being able to see anything.

This commit loads all external resources last instead. In other words, first load and display the content, then load the enhancements.

Fixes #195. Continuation of commit 54437f710.


NOTE: I have not tested this code.

Feel free to close this PR if there’s a better solution; I basically just wanted to get the ball rolling for https://github.com/elm-lang/elm-reactor/issues/195#issuecomment-229576168.

process-bot commented 8 years ago

Thanks for the pull request! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.