by jarofgreen · 14y ago · 0 comments
In his webpage he also says "They downgrade all images and insert a javascript link into the HTML of each page."
The image downgrading has been know about for ages, the JS I have not heard about before. I have asked for more info on Twitter but will investigate myself if I can find time today.
http://stackoverflow.com/questions/4113268/how-to-stop-javas...
Besides injecting the bmi.js they also do their own javascript compression. At that time we had our own minified version of jquery, which got corrupted by their compression. They assume that /* always denotes a starting comment. This is wrong for the jquery lib, which contains some strings containing /* to denote mime type patterns. Anyways, we solved those compression issues with cache-control:no-transform. Also gzip compressing the HTTP responses worked.
Our boss saw errors loading the site on his iPad, but whenever we brought him into the office to try and replicate it, the problems disappeared.
We finally figured out it only happened when he was out the office, so on 3G not WiFi, and then managed to find the stackoverflow post you mention.
As Lewis replies, "@O2 User-agent header ID's the device. Passing mobile number to third party sites is not ok! Seems like a data protection act breach to me?"
Being charitable, that could be clueless support rather than official policy response but hopefully the storm coming their way will get an official response soon.
It is in fact illegal for the website to obtain this information... Lew, you're going down... Only joking.
...and for people using iPod Touches or similar?
This tag is inserted in the head:
<script src="http://1.2.3.4/bmi-int-js/bmi.js language="javascript">
This is inserted at the end:
<script language="javascript"><!-- bmi_SafeAddOnload(bmi_load,"bmi_orig_img",0);//-->
</script>
The external JS is here: http://pastebin.com/rv3k4meX
Analysis please. At an initial glance it seems to just be about the image compression.
My quick glace at it agrees with you, it looks like it replaces the URLs of the images, presumably to load compressed versions.