hoverzoom icon indicating copy to clipboard operation
hoverzoom copied to clipboard

Feature request: Add a button to preload the large images

Open wolph opened this issue 11 years ago • 4 comments

Instead of having the checkbox to always enable/disable preloading, it would be great to just press a button to preload all images on a page.

Also, after preloading it would be very useful to have a button to open the gallery :)

wolph avatar Nov 22 '14 11:11 wolph

Always preloading is currently done like this in hoverzoom.js

{
clearTimeout(preloadTimeout);
preloadTimeout = setTimeout(hz.preloadImages, 800);
}

So all that´s necessary is doing that on a keypress. The keys itself are configured in options.js. An additional Action Key would have to be declared

actionKeys = [
{...},...,{...},
    {
            id:'preloadKey',
            title:'Preload all images',
            description:'Preloads all images on the page on keypress'
     }  ]

and loaded, i am however not sure how exactly that happens. My guess is that it could work by adding it like this:

function loadKeys(sel) {
$('<option value="47">preloadKey</option>').appendTo(sel);

I may or may not test if that would do the trick.

Dumbaz avatar Jan 28 '15 22:01 Dumbaz

On original hoverzoom, when you click on the hoverzoom icon in the url bar, it brings out a popup containing, amongs other options, a link to preload all images on the current page: hoverzoom popup

@extesy Is the popup disabled here?

AltarBeastiful avatar Jul 20 '15 15:07 AltarBeastiful

@AltarBeastiful It shouldn't be disabled. What happens when you try to click on HoverZoom+ icon?

extesy avatar Jul 20 '15 19:07 extesy

Well now it's fine. I went to the background page, saw some error. Then the popup shows up. image That's the popup while automatic preloading is going on. So compared to original hoverzoom, the popup misses :

  • Disable for the site checkbox,
  • Preload zoomed images link.

Could we add those easily you think?

AltarBeastiful avatar Jul 20 '15 20:07 AltarBeastiful