Responsive JavaScript – load/hide specific function related to browser width?
问题 first fo all: i'm not into JavaScript/JQuery! …but i will try to point out what i want to do. i'm using the fantastic bx-slider on my page and i made my website responsive via media queries which both works great so far. …but there are some features from the bx-slider-script which i don't want to get active on a specific browser-width. here's what i want: browser-width LOWER than 500px = load this function: $('#slider4').bxSlider({ minSlides: 2, maxSlides: 2, slideWidth: 230, slideMargin: 10,