Updated the plugin to take an option instead of a string and callback.
Added detection for mobile to adjust caching