framework7io / framework7io/framework7

Add Horizontal Lazy Loading Support

Open
#1,006 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Feature Request
Dominant language
JavaScript
Stars
18.8k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

This is a (multiple allowed):

  • bug
  • enhancement
  • feature-discussion (RFC)
  • Framework7 Version: v1.4.2
  • Platform and Target: All

Hi

I have a simple list of horizontal images in a scroll that go outside the page view. It seems the lazy loading only works if you scroll down when the images are in view.

It would be cool if the lazy loading function listened for horizontal scrolling too.

I tried the following but that still did not help.

myApp.initImagesLazyLoad('.h-scroll');

Cheers

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the initImagesLazyLoad('.h-scroll') entry point and reproduce the issue with a horizontally scrolling list of images on Framework7 v1.4.2. Check how lazy loading detects scrolling; done means images outside the initial page view load when the horizontal container is scrolled.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.