This topic is locked

PageSpeed script on menu in 8.1 and 9

7/14/2016 1:17:36 PM
PHPRunner General questions
M
merlingolden author

Menu is pushed to extreme right of the page in the generated application in v8.1 and upgraded v9.0 projects, The script in the menu block looks like the following. Just imagine the entire script below shows in a single line and right of that the horizontal menu starts. This script is something to do with increasing page speed.
//<![CDATA[ (function(){var g=this;function h(b,d){var a=b.split("."),c=g;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var e;a.length&&(e=a.shift());)a.length||void 0===d?c[e]?c=c[e]:c=c[e]={}:c[e]=d};function l(<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=23998&image=1&table=forumtopics' class='bbc_emoticon' alt='B)' />{var d=b.length;if(0<d){for(var a=Array(d),c=0;c<d;c++)a[c]=b[c];return a}return[]};function m(<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=23998&image=2&table=forumtopics' class='bbc_emoticon' alt='B)' />{var d=window;if(d.addEventListener)d.addEventListener("load",b,!1);else if(d.attachEvent)d.attachEvent("onload",<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=23998&image=3&table=forumtopics' class='bbc_emoticon' alt='B)' />;else{var a=d.onload;d.onload=function(){b.call(this);a&&a.call(this)}}};var n;function p(b,d,a,c,e){this.h=b;this.j=d;this.l=a;this.f=e;this.g={height:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,width:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth};this.i=c;this.b={};this.a=[];this.c={}}function q(b,d){var a,c,e=d.getAttribute("data-pagespeed-url-hash");if(a=e&&!(e in b.c))if(0>=d.offsetWidth&&0>=d.offsetHeight)a=!1;else{c=d.getBoundingClientRect();var f=document.body;a=c.top+("pageYOffset"in window?window.pageYOffset:(document.documentElement||f.parentNode||f).scrollTop);c=c.left+("pageXOffset"in window?window.pageXOffset:(document.documentElement||f.parentNode||f).scrollLeft);f=a.toString()+","+c;b.b.hasOwnProperty(f)?a=!1:(b.b[f]=!0,a=a<=b.g.height&&c<=b.g.width)}a&&(b.a.push(e),b.c[e]=!0)}p.prototype.checkImageForCriticality=function(<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=23998&image=4&table=forumtopics' class='bbc_emoticon' alt='B)' />{b.getBoundingClientRect&&q(this,<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=23998&image=5&table=forumtopics' class='bbc_emoticon' alt='B)' />};h("pagespeed.CriticalImages.checkImageForCriticality",function(<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=23998&image=6&table=forumtopics' class='bbc_emoticon' alt='B)' />{n.checkImageForCriticality(<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=23998&image=7&table=forumtopics' class='bbc_emoticon' alt='B)' />});h("pagespeed.CriticalImages.checkCriticalImages",function(){r(n)});function r(<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=23998&image=8&table=forumtopics' class='bbc_emoticon' alt='B)' />{b.b={};for(var d=["IMG","INPUT"],a=[],c=0;c<d.length;++c)a=a.concat(l(document.getElementsByTagName(d[c])));if(0!=a.length&&a[0].getBoundingClientRect){for(c=0;d=a[c];++c)q(b,d);a="oh="+b.l;b.f&&(a+="&n="+b.f);if(d=0!=b.a.length)for(a+="&ci="+encodeURIComponent(b.a[0]),c=1;c<b.a.length;++c){var e=","+encodeURIComponent(b.a[c]);131072>=a.length+e.length&&(a+=e)}b.i&&(e="&rd="+encodeURIComponent(JSON.stringify(t())),131072>=a.length+e.length&&(a+=e),d=!0);u=a;if(d){c=b.h;b=b.j;var f;if(window.XMLHttpRequest)f=new XMLHttpRequest;else if(window.ActiveXObject)try{f=new ActiveXObject("Msxml2.XMLHTTP")}catch(k){try{f=new ActiveXObject("Microsoft.XMLHTTP")}catch(v){}}f&&(f.open("POST",c+(-1==c.indexOf("?")?"?":"&")+"url="+encodeURIComponent(<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=23998&image=9&table=forumtopics' class='bbc_emoticon' alt='B)' />),f.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),f.send(a))}}}function t(){var b={},d=document.getElementsByTagName("IMG");if(0==d.length)return{};var a=d[0];if(!("naturalWidth"in a&&"naturalHeight"in a))return{};for(var c=0;a=d[c];++c){var e=a.getAttribute("data-pagespeed-url-hash");e&&(!(e in <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=23998&image=10&table=forumtopics' class='bbc_emoticon' alt='B)' />&&0<a.width&&0<a.height&&0<a.naturalWidth&&0<a.naturalHeight||e in b&&a.width>=b[e].o&&a.height>=b[e].m)&&(b[e]={rw:a.width,rh:a.height,ow:a.naturalWidth,oh:a.naturalHeight})}return b}var u="";h("pagespeed.CriticalImages.getBeaconData",function(){return u});h("pagespeed.CriticalImages.Run",function(b,d,a,c,e,f){var k=new p(b,d,a,e,f);n=k;c&&m(function(){window.setTimeout(function(){r(k)},0)})});})();pagespeed.CriticalImages.Run('/mod_pagespeed_beacon','http://MYWEBSITE_URL/task_project_list.php','DeujVLBf6E',true,false,'a3TIdNlxLS8';); //]]>

Sergey Kornilov admin 7/14/2016

I don't know what is this but it is definitely not a part of PHPRunner. I guess it is coming from one of your browser extensions.