How can we load a specific Javascript-file using the media queries from the WordPress themefolder (wp-content/themename/js/file.js)
Whe would only like to load grid.js when using a tablet or a desktop browser.
How can we load a specific Javascript-file using the media queries from the WordPress themefolder (wp-content/themename/js/file.js)
Whe would only like to load grid.js when using a tablet or a desktop browser.
You must be logged in to post a comment.
You should load your grid.js asynchronous:
See:
Javascript asynchron nachladen,
Touchgeräte erkennen