Skip to content

Fallback to standard <iframe> when JavaScript unavailable? #17

@00dani

Description

@00dani

Without JavaScript, the recommended setup for this plugin produces a big empty space on your blog, rather than gracefully falling back to a non-responsive JS-free display of the photoset. I hacked up a quick fix on my blog such that Tumblr's standard <iframe>-based photoset display is used when JS is unavailable, like so:

.photo-slideshow {
 visibility: visible;
 display: none;
}
{block:Photoset}
  {Photoset-500}
  <!-- standard pxuPhotoset HTML goes here -->
{/block:Photoset}
$(document).ready(function() {
  var ps = $('li.photoset');
  ps.find('.html_photoset');
    .remove();
  ps.find('.photo-slideshow')
    .css({display: 'block'})
    .pxuPhotoset(options);
});

Would it be worth extending this plugin itself, or perhaps just its usage instructions, to accommodate a fallback such as the above?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions