Skip to content
This repository was archived by the owner on Dec 18, 2025. It is now read-only.

if you run multiple imageloader() on one image, the result may not be constant. #4

@beatak

Description

@beatak

let's say, there's a image gallery application. There's one big picture, and there are thumbnails. When you click on each thumbnail, the big picture changes.

In a simple implementation, there's a handler attached to the click event, that triggers imageloader() on the big picture. it works most of the case.

But If you keep clicking the thumbnails before the big picture gets loaded, and if the server returns not sequentially, the eventual result may not be the way you expect. It'd be nice, if there's a way to control the result.

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