I need a option so that when I am adding some script using wp_enqueue_script it should load for specific screen size. Like when the screen size will be below 768px the script will not load.
I am using something like this for now.....
if(!wp_is_mobile()){
wp_enqueue_style( 'wpm_animation_css', get_template_directory_uri() . '/assets/css/animation.css', array(), '1.1', false );
wp_enqueue_script( 'uikit.min', get_template_directory_uri() . '/assets/js/uikit.min.js', array( 'jquery' ), '2.4.0', true );
}
Any help will be really appreciated.
Thanks Sabbir