Support » Plugin: WP Defer Loading » weird code showing on the header

  • Resolved wasp.ikke

    (@waspikke)


    when i activate the plugin, it show me this on the header of my site.

    var element = document.createElement(“script”); element.appendChild( document.createTextNode( “var display = {\”max_specific\”:\”0\”,\”display_view\”:\”1col\”,\”number\”:\”84\”,\”items\”:\”5\”,\”startPage\”:\”1\”,\”maxPages\”:\”17\”,\”nextLink\”:\”http:\\/\\/rawforbeauty.me\\/page\\/2\\/\”};” ) );document.body.appendChild(element); var elementjquery = document.createElement(“script”); function helperjquery(){ var elementjquery_migrate = document.createElement(“script”); elementjquery_migrate.src = “http://rawforbeauty.me/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1”; document.body.appendChild(elementjquery_migrate); var elementmodernizr = document.createElement(“script”); elementmodernizr.src = “http://rawforbeauty.me/wp-content/themes/themuse-parent/js/libs/modernizr.min.js?ver=3.8”; document.body.appendChild(elementmodernizr); var elementrespond = document.createElement(“script”); elementrespond.src = “http://rawforbeauty.me/wp-content/themes/themuse-parent/js/libs/respond.min.js?ver=3.8”; document.body.appendChild(elementrespond); var elementgeneral = document.createElement(“script”); elementgeneral.src = “http://rawforbeauty.me/wp-content/themes/themuse-parent/js/general.js?ver=3.8”; document.body.appendChild(elementgeneral); var elementcarouFredSel = document.createElement(“script”); elementcarouFredSel.src = “http://rawforbeauty.me/wp-content/themes/themuse-parent/js/jquery.carouFredSel.min.js?ver=3.8”; document.body.appendChild(elementcarouFredSel); var elementtouchSwipe = document.createElement(“script”); elementtouchSwipe.src = “http://rawforbeauty.me/wp-content/themes/themuse-parent/js/jquery.touchSwipe.min.js?ver=3.8”; document.body.appendChild(elementtouchSwipe); var elementcusel_min = document.createElement(“script”); elementcusel_min.src = “http://rawforbeauty.me/wp-content/themes/themuse-parent/js/cusel-min.js?ver=3.8”; document.body.appendChild(elementcusel_min); var elementaudioplayer.min = document.createElement(“script”); elementaudioplayer.min.src = “http://rawforbeauty.me/wp-content/themes/themuse-parent/js/audioplayer.min.js?ver=3.8”; document.body.appendChild(elementaudioplayer.min); var elementjquery.masonry = document.createElement(“script”); elementjquery.masonry.src = “http://rawforbeauty.me/wp-content/themes/themuse-parent/js/jquery.masonry.min.js?ver=3.8”; document.body.appendChild(elementjquery.masonry); var elementcustomInput = document.createElement(“script”); elementcustomInput.src = “http://rawforbeauty.me/wp-content/themes/themuse-parent/js/jquery.customInput.js?ver=3.8”; document.body.appendChild(elementcustomInput); var elementprettyPhoto = document.createElement(“script”); elementprettyPhoto.src = “http://rawforbeauty.me/wp-content/themes/themuse-parent/framework/static/javascript/jquery.prettyPhoto.js?ver=3.1.4”; document.body.appendChild(elementprettyPhoto); } elementjquery.onreadystatechange = function () { if (this.readyState == ‘complete’) helperjquery(); } elementjquery.onload = helperjquery; elementjquery.src = “http://rawforbeauty.me/wp-includes/js/jquery/jquery.js?ver=1.10.2”; document.body.appendChild(elementjquery); var elementfacebook_jssdk = document.createElement(“script”); elementfacebook_jssdk.src = “”; document.body.appendChild(elementfacebook_jssdk); } // Check for browser support of event handling capability if (window.addEventListener) window.addEventListener(“load”, downloadJSAtOnload, false); else if (window.attachEvent) window.attachEvent(“onload”, downloadJSAtOnload); else window.onload = downloadJSAtOnload;

    the plugin helps to defer parsing of javascript when i check it on http://gtmetrix.com/. however it is showing weird codes on the header.

    any idea how to fix these? t
    thanks

    http://wordpress.org/plugins/wp-defer-loading/

Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘weird code showing on the header’ is closed to new replies.