MyBB Community Forums

Full Version: Disable Plugin if user is on mobile
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible to disable the plugin if the user is on mobile? I have a New Years javascript plugin that works fine on PC but lags on mobile.
It is possible to only run JavaScript code based on Viewport. You can find information on google. The following is the first result for me but there is plenty on information available on the web.
https://stackoverflow.com/questions/1211...wport-size