• I’ve installed and activated the plugin but it is just writing out all the javascript directories onto the header of the page?

    So now when I load a page I get

    var element = document.createElement("script"); element.appendChild( document.createTextNode( "var JQLBSettings = {\"showInfo\":\"1\",\"fitToScreen\":\"1\",\"resizeSpeed\":\"400\",\"displayDownloadLink\":\"0\",\"navbarOnTop\":\"0\",\"resizeCenter\":\"\",\"marginSize\":\"0\",\"linkTarget\":\"_self\",\"slideshowSpeed\":\"4000\",\"help\":\"\",\"prevLinkTitle\":\"previous image\",\"nextLinkTitle\":\"next image\",\"closeTitle\":\"close image gallery\",\"image\":\"Image \",\"of\":\" of \",\"download\":\"Download\",\"pause\":\"(pause slideshow)\",\"play\":\"(play slideshow)\"};" ) );document.body.appendChild(element); var elementjquery = document.createElement("script"); function helperjquery(){ var elementjquery_migrate = document.createElement("script"); elementjquery_migrate.src = "https://www.lazygamer.net/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1"; document.body.appendChild(elementjquery_migrate); var elementjquery_form = document.createElement("script"); elementjquery_form.src = "https://www.lazygamer.net/wp-includes/js/jquery/jquery.form.min.js?ver=3.37.0"; document.body.appendChild(elementjquery_form); var elementdilemma_ajax = document.createElement("script"); elementdilemma_ajax.src = "https://www.lazygamer.net/wp-content/plugins/Dilemma/js/dilemma.js?ver=3.7.1"; document.body.appendChild(elementdilemma_ajax); var elementjquery_ui_core = document.createElement("script"); elementjquery_ui_core.src = "https://www.lazygamer.net/wp-includes/js/jquery/ui/jquery.ui.core.min.js?ver=1.10.3"; document.body.appendChild(elementjquery_ui_core); var elementjquery_ui_widget = document.createElement("script"); elementjquery_ui_widget.src = "https://www.lazygamer.net/wp-includes/js/jquery/ui/jquery.ui.widget.min.js?ver=1.10.3"; document.body.appendChild(elementjquery_ui_widget); var elementinfinite_scroll = document.createElement("script"); elementinfinite_scroll.src = "https://www.lazygamer.net/wp-content/plugins/infinite-scroll/js/front-end/jquery.infinitescroll.js?ver=3.7.1"; document.body.appendChild(elementinfinite_scroll); var elementrepostus = document.createElement("script"); elementrepostus.src = "https://static.1.rp-api.com/rjs/repostus.js?v4_04&ver=3.7.1"; document.body.appendChild(elementrepostus); var elementwp_jquery_lightbox_swipe = document.createElement("script"); elementwp_jquery_lightbox_swipe.src = "https://www.lazygamer.net/wp-content/plugins/wp-jquery-lightbox/jquery.touchwipe.min.js?ver=1.4"; document.body.appendChild(elementwp_jquery_lightbox_swipe); var elementwp_jquery_lightbox = document.createElement("script"); elementwp_jquery_lightbox.src = "https://www.lazygamer.net/wp-content/plugins/wp-jquery-lightbox/jquery.lightbox.min.js?ver=1.4"; document.body.appendChild(elementwp_jquery_lightbox); var elementsuperfish = document.createElement("script"); elementsuperfish.src = "https://www.lazygamer.net/wp-content/themes/Lazygamer2012/includes/js/superfish.js?ver=3.7.1"; document.body.appendChild(elementsuperfish); var elementgeneral = document.createElement("script"); elementgeneral.src = "https://www.lazygamer.net/wp-content/themes/Lazygamer2012/includes/js/general.js?ver=3.7.1"; document.body.appendChild(elementgeneral); var elementslidesjs = document.createElement("script"); elementslidesjs.src = "https://www.lazygamer.net/wp-content/themes/Lazygamer2012/includes/js/slides.min.jquery.js?ver=3.7.1"; document.body.appendChild(elementslidesjs); } elementjquery.onreadystatechange = function () { if (this.readyState == 'complete') helperjquery(); } elementjquery.onload = helperjquery; elementjquery.src = "https://www.lazygamer.net/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;

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    at the top?

    https://www.ads-software.com/plugins/wp-deferred-javascripts/

  • The topic ‘Javascript being printed as text?’ is closed to new replies.