I need to deregister some scripts for mobile devices
-
I’m trying to make my themes reasonably responsive without creating dedicated mobile themes. I’ve simply been putting @media CSS at the bottom of my stylesheets. I’m not sure what to do about the javascript though. One javascript (Masonry) messes up the rendering of the site on a phone, and its unnecessary bandwidth.
My javascripts are loaded in my functions file, using the enqueue script function.
Can I incorporate an @media conditional into enqueue script? Or is there a better way to do it?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘I need to deregister some scripts for mobile devices’ is closed to new replies.