Monthly Archives: September 2010

howto fix m$ ie javascript timeouts

M$ IE may time out when running javascript and display the error:

“A script on this page is causing Internet Explorer to run slowly”

You may be able to fix this by:

  • running regedit
  • adding a key HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Styles
  • adding a keyvalue MaxScriptStatements DWORD with a value 50,000,000

M$ IE (6,7,8) should now wait 10 x longer than the default timeout of 5,000,000 script lines !

See also

Advertisements

M$ IE cookie blocking

If the M$ IE (IE6, IE7, IE8) web browser cant find a P3P cookie ‘privacy policy’ for  your website it might ‘block’ your cookies unless the user has chosen the ‘Always allow this site to use cookies’ option.

See also:

new goog analytics js

google have released a new asynchronous analytics js snippet

see http://code.google.com/apis/analytics/docs/tracking/asyncTracking.html

and http://code.google.com/apis/analytics/docs/tracking/asyncUsageGuide.html

<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXX-Y']);
_gaq.push(['_setDomainName', '.fsse.info']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script');
ga.type = 'text/javascript';
ga.async = true;
ga.src =
('https:' == document.location.protocol ? 'https://ssl' : 'http://www') +
'.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
</script>

Now goog own your apache logs !

Due to the googles  Google Wireless Transcoder ‘bot’ its now even more important to enable and check the X-Forwarded-For records in your apache access logs ! There will now be an even bigger mismatch between you apache httpd access logs, awstats or webalizer visitor reports and your google analytics visitor reports !

Look in your apache httpd access logs and you may see you are now getting a lot of new visitors from Mountain View, CA, USA with the IP range 74.125.0.0 – 74.125.255.255.

Look closely at the user agent and you may find these are in fact from the Google Wireless Transcoder ‘bot’

‘AppleWebKit/525.13 (KHTML, like Gecko; Google Wireless Transcoder)’

which is actually a proxy server that is reformatting your pages for mobile devices so your actual visitors could be coming from any mobile user using the google mobile symbian app from anywhere in the world !

So make you are use X-Forwarded-For in your appache httpd logformat instead of the host ip as appropriate to determine where your vistors are actually coming from !

See http://www.maretmanu.org/homepage/inform/apache-forwarded.php for more info but watch out as the X-Forwarded-For may not be a single IP but actually be a list of IPs and I have noticed that in my case GWT has listed my UK mobiles IP address twice separated by a comma ! ie 217.171.128.x,217.171.128.x