.
WORDPRESS PLUGINS ABOUT

Load JavaScript on Desktops only

1 minute read

The code below will only load these JS files if the screen is larger than 480px.

<script>
if (screen && screen.width > 480) {
document.write('<script type="text/javascript" src="https://telonic.co.uk/jg/wp-content/themes/Telonic/js/modernizr.custom.28468.js"><\/script>');
document.write('<script type="text/javascript" src="https://telonic.co.uk/js/jquery-3.6.0.min.js"><\/script>');
document.write('<script type="text/javascript" src="https://telonic.co.uk/jg/wp-content/themes/Telonic/js/jquery.cslider.js"><\/script>');
}
</script>
^