WordPress.org

Forums

Need a preloader! (3 posts)

  1. vanuch
    Member
    Posted 7 years ago #

    Hello! Hopefully I made a right choice of subforum. If not, then I'm sorry.

    I've been looking for something to solve my need, but haven't found anything suitable. The problem is as follows:

    I have a Nextgen Gallery plugin installed and I use it with Shutter Reloaded to show images (used to be Lightbox2, but it really doesn't matter here as for I am concerned). Galleries are insterted to pages (one gallery for each page). Some bigger galleries have up to 200-300 pictures and as I'm not a big fan of splitting them up into multible pages, it might take a while to load the thumbnails. And if they aren't loaded yet, neither the Shutter Reloaded nor the Lightbox2 will show and the image is simply opened in a blank backround aka 'oldschool'. And I don't want that. I have AJAXed up my blog anyway, so I would really-REALLY like to have a modification or even better - a seperate plugin that would call out an overlay-preloader until all the content on the page (thumbnails etc) are loaded. A independent seperate plugin for that would be ideal. So I could configure it on what to preload etc. It would be nice to deny users the access to the page being preloaded until it is done (maybe even darken the page - the backround of the preloader in this case). A seperate plugin would also allow the plugin to be used for all the pages in a blog, if needed. Or it would be also nice to be able to specify on which pages the preloader would work on. I would like to be able to change the text/images of the preloader in the configuration etc. Maybe even a more advanced option to tell the preloader plugin to preload even the full sized images on a page/gallery? Well, that might be something too much to wish for nor is it vital for this preloader as Shutter Reloaded also preloades a couple images in advance. Anyway... Thumbnails and/or page to be preloaded is a must for me.

    This is the plugin I'm looking for. If there is such already, I have missed it (the search in google and in here haven't been of any help so far). So please, PLEASE point it out to me, if it excists or perhaps someone could make me one..?

    Looking forward for any assistance,
    Vanuch (Valle) from foto.yellout.net

  2. Andrew Ozz
    WordPress Dev
    Posted 7 years ago #

    That's not very simple to do... You can put a style on the body tag, something like

    background : black;
    opacity : 0.3;

    and then add another javascript to run onload to reset the css back to normal (check the proper opacity syntax for IE on the net, it's different).

    The problem is that if your visitors have javascript disabled, the body will remain dark. Of course you can put a noscript tag with big friendly letters: "Please enable Javascript" or similar, but If someone is browsing without js, it's not very likely to enable it to see the page, so you end up loosing visitors...

  3. vanuch
    Member
    Posted 7 years ago #

    Thanks for the reply.

    Well you gave me some ideas on what to do. The only problem is, that I'm not very familiar with JavaScript and it could take me endless hours to make this work and even then probably not very well. Maybe someone will still be up to making the plugin? :)

    And I don't worry too much about visitors who have JavaScript disabled. WEB 2.0 and stuff use a lot of it and I believe that won't be a problem. And I'm not sure I would be able to work around it either, so...

    And what concerns about some different script for IE then I've heard of it but I've never tried it.

Topic Closed

This topic has been closed to new replies.

About this Topic