# JavaScript Uncaught ReferenceError: bmi\_load is not defined

**URL:** <https://meta.discourse.org/t/javascript-uncaught-referenceerror-bmi-load-is-not-defined/25129>\
**Category:** Bug\
**Created:** [February 11, 2015, 3:23pm UTC](https://meta.discourse.org/t/javascript-uncaught-referenceerror-bmi-load-is-not-defined/25129 "2015-02-11T15:23:26Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)\
**Post date:** [February 11, 2015, 5:32pm UTC](https://meta.discourse.org/t/javascript-uncaught-referenceerror-bmi-load-is-not-defined/25129/3 "2015-02-11T17:32:58Z")

</div>

I think I have found the source.  
It being several users accessing the site via UK 3G/GPRS providers who modify the content.

[https://kc.mcafee.com/corporate/index?page=content&id=KB52171](https://kc.mcafee.com/corporate/index?page=content&id=KB52171)

> ####Problem  
> SaaS Endpoint Protection fails to update and you see the following error message in the update window:  
> BMI\_LOAD is undefined  
> The SaaS Endpoint Protection system tray icon eventually shows the error condition symbol.  
> ####Cause  
> BMI\_Load is a JavaScript used by various mobile vendors in General Packet Radio Service (GPRS) modem software. In other cases it is injected into HTML by mobile data carriers. This JavaScript reduces image quality to improve bandwidth over the GPRS connection. The BMI\_Load JavaScript can conflict with SaaS’s JavaScript resulting in an error condition that prevents SaaS Endpoint Protection from completing the DAT update.

### Possible solution

Consider adding `Cache-Control "no-transform"` header.

However this might have other ramifications in terms of intermediate caching servers, but as long as this isn’t included on the image files it shouldn’t have that much of an effect.

> <https://github.com/h5bp/server-configs-apache/blob/4c359776530f24f2dd690f6d01c915c8040b3cbe/src/web_performance/content_transformation.conf>

EDIT: If a site is behind Google PageSpeed - this header would cause the page not to be rewritten, perhaps impacting CloudFlare sites too… personally I would prefer knowing the site is loaded without errors.

---

_[View the full topic](https://meta.discourse.org/t/javascript-uncaught-referenceerror-bmi-load-is-not-defined/25129)._
