.. / ajaxify
Star Fork

Ajaxify your entire website instantly with this simple drop-in script using the HTML5 History API with History.js and jQuery ScrollTo.

ajaxify
browserstate
...

Latest

<any> @id @class 🛡️ strict-dynamic ⏱️ before-load
More information

Root Cause

Source: https://github.com/browserstate/ajaxify/blob/f086e25d691f0a2da39427369063c4324c134d7d/ajaxify-html5.js#L129

$scripts = $dataContent.find('.document-script');
if ( $scripts.length ) {
  $scripts.detach();
}

// [...]

$scripts.each(function(){
  var $script = $(this), scriptText = $script.text(), scriptNode = document.createElement('script');
  if ( $script.attr('src') ) {
    if ( !$script[0].async ) { scriptNode.async = false; }
    scriptNode.src = $script.attr('src');
  }
      scriptNode.appendChild(document.createTextNode(scriptText));
  contentNode.appendChild(scriptNode);
});

Related links:

Found by @slekies, @kkotowicz, @sirdarckcat.


Source | History