Offline Simulate UI is an Offline.js
plug-in that allows you to test how your pages respond to different connectivity
states without having to use brute-force methods to disable your actual connectivity.
Click on the checkbox on the left-hand side of the window and see how the page responds.
Notice that this page uses the Offline.js Chrome theme which you can see at the top of the page.
When you include offline-simulate-ui.min.js
on your page the following configuration settings
are applied:
Note: Make sure you reference Offline.js before this script. If you install with Bower, it will pull in Offline.js as a dependency.
<script> $(function(){ var $online = $('.online'), $offline = $('.offline'); Offline.on('confirmed-down', function () { $online.fadeOut(function () { $offline.fadeIn(); }); }); Offline.on('confirmed-up', function () { $offline.fadeOut(function () { $online.fadeIn(); }); }); }); </script>