Problem noted with ?device-view=mobile LITHIUM object
Hi guys
When we use ?device-view=mobile we note that the LITHIUM javascript object is not loaded / included, which results in a javascript error.
Uncaught ReferenceError: LITHIUM is not defined
This appears to be related to a missing include when this mode is activated. The following line is included when using a browser user-agent swticher set to iPhone. When using only ?device-view=mobile this line magically dissappears meaning that LITHIUM is undefined although the mobile view is shown. Basically this means any javascript running in the mobile view stops dead.
<script type="text/javascript" src="https://xxx.xxx.xxx/t5/scripts/6640BDDF24FE41C36D8A4993E5EFE179/lia-scripts-head-min.js"></script>
If you are going to advertise device-view=mobile to clients its important that it works the same as a user-agent switcher and provides a true mobile view, otherwise we'll continue to get defect reports from clients who are trying to test mobile views using this trick.
Thanks
Hi,
Please note that testing the mobile view using the "?device-view=mobile" parameter in the browser will disable Javascript, so the variable will not be available. You will need to either use a mobile device or change the user agent string of the browser (the easiest is test this on safari with the Developer menu).