Home > Website Design > What’s this bmi_SafeAddOnload code all about?

What’s this bmi_SafeAddOnload code all about?

November 16th, 2009

I’ve recently signed up to the Internet tethering option from O2 using the iPhone (due to an outage of broadband) and have discovered something which I thought could never exist - optimised image quality dependant on your Internet connection.

It took me a while to understand what was going on. It niggled me for days before I decided to investigate. So, when you connect to the O2 3G network via the iPhone (tethering) all images appear heavily compressed - to reduce download times and generally speed things up.

It works by automatically adding the following lines of JavaScript to the bottom of every page (you may also notice that all the source code has been minified, to improve performance). So far I’ve only checked this on Mac OS X 10.6.1 on both Safari 4.0.3 and Firefox 3.0.1.

<script><!–
bmi_SafeAddOnload(bmi_load,”bmi_orig_img”,0);
// –></script>

You can improve the quality of the image by hovering over it and pressing [SHIFT] + [R] or alternatively, pressing [SHIFT] + [A] improves the quality of all images on the page. This hint appears as a handy tooltip.

So far, I’ve been able to work out how to turn this feature off or make up my mind whether this is brilliant or very annoying. I understand the reason behind the feature but I can’t help feel it’s a bit intrusive - it should be my choice to improve download times at the expense of a limited browsing experience. Don’t you think?

Keen to know your thoughts or if you have managed to turn it off…

Bookmark and Share

Website Design

  1. Mohamed Emad El-Din
    November 28th, 2009 at 20:26 | #1

    I have read your words carefully & understood everything about what you experienced with your connection.
    I have the same issue with my connection, i am using Vodafone Mobile Connect Lite.

    In my point of view, i think its annoying more than its useful .. i wish to find a solution to get ride of that message…

    I wouldn’t mind to see the images in a low quality but i don’t want to see that ANNOYING message.

    Have you figured out how to remove it?????

  2. kaen
    November 29th, 2009 at 07:35 | #2

    i managed to get around this by using a firefox addon called “modify headers” dunno how to get around it with other browsers yet.

    install the addon/restart etc - goto tools and youll see a new modify headers menu.

    add two lines filling in the boxes like so, ignore the - its just to separate and leave the last box empty

    add - pragma - no-cache - leave blank
    add - Cache-Control - no cache - leave blank

    makes sure its enabled and check enable when menu is closed

    problem fixed :)

  3. Mohamed Emad El-Din
    November 29th, 2009 at 11:01 | #3

    Thanks for replying to me, i already did that before but still the same.

    i am using Mozilla Firefox v3.5.5
    i cleared the cached files & everything but its not working too.

    Really i wish to get ride of that annoying message, that’s all i want.

    Have you got any other ideas?

  4. November 29th, 2009 at 11:55 | #4

    I may have a solution which may work. I’m no longer on the tethering option so you will have to give this a go and let me know how you get on.

    In the HEAD of the page you will see a call to a JavaScript file (something like bmi.js). If you block the IP address or domain that this script is located on it should in theory prevent the file from being downloaded.

    In IE you can block sites or IP addresses but not sure about other browsers. You may be able to block it at the OS level using either the hosts file or firewall. Failing that, you may be able to block it on your local router.

    Hope this helps,

    Let me know how you get on…

  5. Mohamed Emad El-Din
    November 29th, 2009 at 13:59 | #5

    Thanks for trying to help me Andy, here is what i found in the HEAD of the page:

    script src=”http://1.2.3.4/bmi-int-js/bmi.js

    I don’t know how to block it through Mozilla Firefox.

    BTW, i haven’t experienced that annoying message while using Internet Explorer v8.0

    Also i was using Google Chrome for a while & everything went OK till 10 days ago. it started to show that annoying message too.

    I hope that we can figure a final solution for this problem :(

    Thanks in advance :)

  6. November 30th, 2009 at 09:44 | #6

    For Firefox, install the site blocker plugin:
    https://addons.mozilla.org/en-US/firefox/addon/3145

    Enter the site http://1.2.3.4 into the add-on. Haven’t tried this myself so let me know how it goes. There’s a few other blocker plug-ins available.

    HTH

  7. Mohamed Emad El-Din
    November 30th, 2009 at 10:54 | #7

    Unfortunately it doesn’t work with Mozilla Firefox v3.5 :(

  8. Eduard
    January 23rd, 2010 at 16:35 | #8

    @kaen
    Thanks a lot!!!! This addon is really working on firefox with vodafone.

    https://addons.mozilla.org/en-US/firefox/addon/967

    Cheers

  9. steve
    February 15th, 2010 at 21:03 | #9

    I don’t think I like the idea of my ISP injecting code into web pages I’m viewing. However,I had a look in Chrome and didn’t see the same code injection. By the way,I’m using a laptop connected using an O2 dongle (rather than tethering) so its not just tethered iPhones (which makes sense).

  1. No trackbacks yet.