joeyvandijk / rimg

[DEPRECATED] A responsive image solution for browsers that support mediaqueries. Pure javascript and no server-side code.
http://joeyvandijk.github.io/rimg
MIT License
294 stars 25 forks source link

Google Chrome extension conflict #4

Closed jacmaes closed 10 years ago

jacmaes commented 10 years ago

A quick head-up: there is a conflict with a Google Chrome extension named "Google Analytics Opt-out Add-on (by Google)":

https://chrome.google.com/webstore/detail/google-analytics-opt-out/fllaojicojecljbmefodhfapmkghcbnh

This extension inserts the following snippets right before the head element to disable Google Analytics tracking:

<script type="text/javascript">window["_gaUserPrefs"] = { ioo : function() { return true; } }</script>

After some trial and error, I identified this extension as the culprit. Disabling the extension restores functionality.

Excellent work, by the way.

joeyvandijk commented 10 years ago

Thank you for your bug report and yes I was too naive that the <body> element always be second inside a <html> element. I fixed it with RIMG 0.4.1 which you can double check (I already did with the extension) here.

Thanks a lot!