Skip to content
This repository has been archived by the owner on Jul 28, 2018. It is now read-only.

Scripts running out of order #513

Closed
sidot3291 opened this issue Apr 23, 2015 · 1 comment
Closed

Scripts running out of order #513

sidot3291 opened this issue Apr 23, 2015 · 1 comment

Comments

@sidot3291
Copy link

See this question on StackOverflow:
http://stackoverflow.com/questions/29785887/scripts-loading-out-of-order-in-chrome

I know you can use a loader like javascript-loaders to define the order that script tags are run. Potentially the same can be done here.

For now I'm moving the external script tag to my head and including it on every page of my app, so it should be guaranteed to be loaded before I reach the page-specific code.

@Thibaut
Copy link
Collaborator

Thibaut commented Apr 24, 2015

Due to browser limitations, we can't fix this without implementing a JavaScript loader within Turbolinks.
See defunkt/jquery-pjax#331 for more info.

Closing as #wontfix. If a solution surfaces feel free to comment and we'll re-open.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants