Browse files

Asset remembering cannot be lazy

This needs to happen as soon as possible to prevent dynamic scripts from getting checked and added.
  • Loading branch information...
1 parent 4e20f10 commit 97dd435e1abbb4b05e02b0597de65f0d641445da @davydotcom davydotcom committed Oct 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/assets/javascripts/turbolinks.js.coffee
View
2 lib/assets/javascripts/turbolinks.js.coffee
@@ -96,7 +96,6 @@ rememberInitialPage = ->
unless initialized
rememberCurrentUrl()
rememberCurrentState()
- rememberCurrentAssets()
createDocument = browserCompatibleDocumentParser()
initialized = true
@@ -195,6 +194,7 @@ browserSupportsPushState =
window.history and window.history.pushState and window.history.replaceState and window.history.state != undefined
if browserSupportsPushState
+ rememberCurrentAssets()
document.addEventListener 'click', installClickHandlerLast, true
window.addEventListener 'popstate', (event) ->

0 comments on commit 97dd435

Please sign in to comment.