Skip to content
This repository was archived by the owner on Jul 19, 2020. It is now read-only.
This repository was archived by the owner on Jul 19, 2020. It is now read-only.

invoke script after image really loaded #13

@wankata

Description

@wankata

$(document).ready() method fires when the DOM tree is loaded, but this does not include loading images itself. It can be a problem, when you've got larger images, or bandwidth problems, when you try to detect the width and hight of the first image.

One possible solution is to use the imagesLoaded library like this:

$(document).ready(function(){
    $(".gallery").imagesLoaded(function() {
        $('.slideShow').slideShow({interval: 3});
    });
});

I think, it should be mentioned somewhere in the documentation :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions