WordPress.org

Forums

Site Background Slider
Feature request: use WP media query to serve smaller backgrounds to (2 posts)

  1. nimmolo
    Member
    Posted 3 years ago #

    Hi - i'm enjoying the plugin.

    I'd like to use it to serve backgrounds for the mobile version of the site too, but the fullscreen images take too long to load and are inappropriately large for such a small screen.

    It seems like if site background slider pulled tagged images from the WP Media Library, it could somehow take advantage of the various sizes in the media library to serve the appropriate size image based on the screen (body) dimension.

    In any case, it seems that Site Background Slider would benefit from being able to retreive tagged images from the media library, and not to be dependent on a designated folder.

    However, maybe you tried it and that query was too slow. I don't know!

    http://wordpress.org/extend/plugins/site-background-slider/

  2. nimmolo
    Member
    Posted 3 years ago #

    Actually nevermind the above. Did more research!
    What would work much more easily is to add in an option to prepend

    http://src.sencha.io

    to the url of the images in the backgrounds folder, when they are called. This sends them through the free Sencha Src service which delivers the right size image for the screen size. The finished image url looks like this:

    http://src.sencha.io/http://my.wordpress.site/wp-content/backgrounds/image2.jpg

    I've hacked my copy of the plugin so it appends this to the images, but it would be great to add the feature, as a form on the Site Background Slider Options page, for URL prefixes.

    If you're interested in how it works, check out the full docu at Sencha Io Src

    I am not associated with that company, it's just the only thing I found that will crunch down those background images to mobile size and serve them up on demand. It doesn't reduce the images on desktop browsers, they get the prefix too but they are served full-size.

    The sencha.io plugin for WP does not affect the background images on SBS. that's why i had to try the hack.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Site Background Slider
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags