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

[#2870] VaImage intersectioning #2872

Merged

Conversation

aluarius
Copy link
Contributor

Currently blocked by #2868

Closes: #2870

Description

  • use intersection observer composable debugging and refactoring to make in more universal;
  • lazy load feature for the va-image component.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Improvement/refactoring (non-breaking change that doesn't add any feature but make things better)

# Conflicts:
#	packages/docs/src/page-configs/ui-elements/image/examples/Contain.vue
#	packages/docs/src/page-configs/ui-elements/image/examples/Default.vue
#	packages/docs/src/page-configs/ui-elements/image/examples/DefaultSlot.vue
#	packages/docs/src/page-configs/ui-elements/image/examples/ErrorSlot.vue
#	packages/docs/src/page-configs/ui-elements/image/examples/LoaderSlot.vue
#	packages/docs/src/page-configs/ui-elements/image/examples/Ratio.vue
@aluarius aluarius added the blocked Blocked by another issue label Jan 18, 2023
@aluarius aluarius self-assigned this Jan 18, 2023
@aluarius aluarius marked this pull request as draft January 18, 2023 12:00
@aluarius aluarius changed the title Feat/2780 va image intersectioning [#2870] VaImage intersectioning Jan 18, 2023
@aluarius aluarius marked this pull request as ready for review January 27, 2023 08:32
@aluarius aluarius removed the blocked Blocked by another issue label Jan 27, 2023
Copy link
Collaborator

@rustem-nasyrov rustem-nasyrov left a comment

Choose a reason for hiding this comment

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

The image loads right after page refresh.

@m0ksem
Copy link
Collaborator

m0ksem commented Jan 27, 2023

What's wrong with loading="lazy"?

@aluarius
Copy link
Contributor Author

What's wrong with loading="lazy"?

Answered in Slack.

@aluarius
Copy link
Contributor Author

The image loads right after page refresh.

Fixed. Had some troubles to make it work well with SSR.

@m0ksem
Copy link
Collaborator

m0ksem commented Jan 30, 2023

@aluarius, please double check how it works with nuxt in sandbox and merge it.

@aluarius
Copy link
Contributor Author

I've tested it first of all in Nuxt :)

@aluarius aluarius merged commit de9c4d7 into epicmaxco:develop Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VaImage intersectioning
3 participants