Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Reload page #2

Closed
kaspar-allenbach opened this issue Dec 10, 2013 · 3 comments
Closed

Reload page #2

kaspar-allenbach opened this issue Dec 10, 2013 · 3 comments

Comments

@kaspar-allenbach
Copy link

One other thing.

When I relaod the page the images are hidden until I scroll a bit. Why is that?

The jail plugin also doesn't work when the image is inside a bootrstrap modal window.

@kaspar-allenbach
Copy link
Author

I found a solution.
After:
{exp:easy_jail:js config="{offset:300}"}

I write a window.resize

<script>
$(function(){
    $('img.jail').jail();
        window.onload = function() {
        $(window).resize()};
    });
</script>

This way the images appear instantly and not on scroll.

@aarongustafson
Copy link
Member

Finally incorporated this fix. Thank you.

@aarongustafson
Copy link
Member

Closing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants