rails/turbolinks — pull request #94 by jdelStrother (2012-10-19 16:58:57+00:00)
Title: Fix assetsChanged

There's two parts to this pull request - the first commit tweaks extractAssets to only consider javascript and stylesheet tags, rather than also considering RSS links, oembed tags etc, as discussed at https://github.com/rails/turbolinks/issues/92.

The second commit I'm less sure about... I think the current logic of assetsChanged is wrong, but perhaps it's too late on a Friday afternoon and my brain has stopped working. AFAICT, the current behaviour will ignore new scripts - say the current page has scripts A and B, and the new page has A, B, and C, the intersection is just A,B, and so assetsChanged returns false. @davydotcom, could you take a look?