arielsalminen / ResponsiveSlides.js

Simple & lightweight responsive slider plugin (in 1kb)
http://responsiveslides.com
3.46k stars 1.52k forks source link

Feature request: loading responsively #237

Open gaztro opened 11 years ago

gaztro commented 11 years ago

First of all, kudos for an excellent, light-weight script.

Have you given any thought to being able to load different images, depending on page size (or media query)?

Here's the use case: For desktops, I'm using the slider with a max-width of 1200. That means my 5 jpgs in the slideshow each weigh in at around 200 KB (for a total of 1MB for all the photos). If I wanted the burden to be less to my mobile users, it would be great to be able to specify another set of photos, scaled at a more appropriate width (say 700px).

I can probably do it with two instances of the slide show, using jQuery or CSS to direct which gets served, but given that the slideshow is responsive, being able to specify a second (or more) set of photos with thin the call would be very nice.

Thanks, Gary

paulvantuyl commented 11 years ago

I combined it with https://github.com/scottjehl/picturefill, working quite nicely so far...