tasks/dentist.js
function inject_script_shim () {
      if (options.include_js) {
        var script_tag = '<script type="text/javascript" src="' + options.include_js + '"></script>';
        if (options.js_insert_marker && html.indexOf(options.js_insert_marker) !== -1) {
          html = html.replace(options.js_insert_marker, script_tag);
        }
        else {
          var shims = ["</body>", "</html>", "</head>"];
          inject(script_tag, shims);
        }
      }
    }
function inject_script_shim () {
      if (options.include_js) {
        var script_tag = '<script type="text/javascript" src="' + options.include_js + '"></script>';
        if (options.js_insert_marker && html.indexOf(options.js_insert_marker) !== -1) {
          html = html.replace(options.js_insert_marker, script_tag);
        }
        else {
          var shims = ["</body>", "</html>", "</head>"];
          inject(script_tag, shims);
        }
      }
    }
function inject_script_shim ( ) { if ( options . include_js ) { var script_tag = '<script type="text/javascript" src="' + options . include_js + '"></script>' ; if ( options . js_insert_marker && html . indexOf ( options . js_insert_marker ) !== - 1 ) { html = html . replace ( options . js_insert_marker , script_tag ) ; } else { var shims = [ "</body>" , "</html>" , "</head>" ] ; inject ( script_tag , shims ) ; } } }
Inject a script tag pointed at the minified JS. Attempt to insert the shim before the closing body tag.
Inject a script tag pointed at the minified JS . Attempt to insert the shim before the closing body tag .