Skip to content

feat: Add event to ion-img for detecting when actual img is loaded #18161

Closed

Description

@vhinic

Feature Request

Ionic version:

[x] 4.x

Describe the Feature Request

Currently, ionImgDidLoad is emitted when img src is set. This is somewhat misleading as name suggest that actual img is loaded. In fact, img is loading after src is set, but is not loaded yet. It would be beneficial that this two events are treated separately Perhaps as: ionImgDidLoad and ionImgWillLoad

Describe Preferred Solution

  • ionImgDidLoad - Emitted when the img has been loaded
  • ionImgWillLoad - Emitted when the img src has been set (i.e., actual img loading starts)

Notice that this would be a breaking change since it is changing when ionImgDidLoad is emitted.

Describe Alternatives

Related Code

Additional Context

This is related to #17652

Activity

  1. changed the title [-]feat: Add event to ion-omg for detecting when actual img is loaded[/-] [+]feat: Add event to ion-img for detecting when actual img is loaded[/+] on Apr 26, 2019
  2. added
    type: feature request
    on Apr 26, 2019
  3. added 4 commits that reference this issue on May 8, 2019
    5eb942f
    71d5400
    2c24df2
    9c65d5d
  4. added a commit that references this issue on May 22, 2019
    3da7254
  5. ionitron-bot commented on May 31, 2019

    @ionitron-bot

    Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

  6. locked and limited conversation to collaborators on May 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: feature request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions