Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Esl image: simplify lazy handling #1858

Draft
wants to merge 4 commits into
base: main-beta
Choose a base branch
from

Conversation

Natalie-Smirnova
Copy link
Collaborator

Closes: #1649

@Natalie-Smirnova Natalie-Smirnova added breaking-change Breaking change marker needs review The PR is waiting for review labels Aug 9, 2023
@Natalie-Smirnova Natalie-Smirnova self-assigned this Aug 9, 2023
@ala-n ala-n added the postponed Postponed issue label Aug 9, 2023
@ala-n
Copy link
Collaborator

ala-n commented Aug 9, 2023

TODO: @exadel-inc/esl-core-maintainers to update main-beta to the 5.0.0 state with actual updates from the main stable as well

@ala-n ala-n removed the needs review The PR is waiting for review label Aug 9, 2023
@ala-n ala-n changed the base branch from main-beta to main August 9, 2023 22:22
@ala-n ala-n changed the base branch from main to main-beta August 9, 2023 22:22
@ala-n ala-n added the needs review The PR is waiting for review label Aug 9, 2023
@ala-n ala-n removed the needs review The PR is waiting for review label Aug 30, 2023
src/modules/esl-image/core/esl-image.ts Outdated Show resolved Hide resolved
src/modules/esl-image/core/esl-image-iobserver.ts Outdated Show resolved Hide resolved
@@ -22,7 +22,7 @@ const isLoadState = (state: string): state is LoadState => ['error', 'loaded', '
@ExportNs('Image')
export class ESLImage extends ESLBaseElement {
public static override is = 'esl-image';
public static observedAttributes = ['alt', 'role', 'mode', 'aria-label', 'data-src', 'data-src-base', 'lazy-triggered'];
public static observedAttributes = ['alt', 'role', 'mode', 'aria-label', 'data-src', 'data-src-base'];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make 'lazy' observable to handle loading accept from the observer or manually

src/modules/esl-image/core/esl-image-iobserver.ts Outdated Show resolved Hide resolved
Natalie-Smirnova and others added 3 commits February 21, 2024 09:30
Co-authored-by: ala'n (Alexey Stsefanovich) <astsefanovich@exadel.com>
Co-authored-by: ala'n (Alexey Stsefanovich) <astsefanovich@exadel.com>
Co-authored-by: ala'n (Alexey Stsefanovich) <astsefanovich@exadel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change Breaking change marker postponed Postponed issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants