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

Lazy load picture thumbnails #2693

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Jan 16, 2024

A large page can have a lot of picture thumbnails with most of them offscreen. Lazy loading them should speed up the page rendering.

What is this pull request for?

Describe you pull request here...

Closes # (Remove if not related to any issue)

Notable changes (remove if none)

Explain any changes (maybe breaking?) that have been made.

Screenshots

Remove if no visual changes have been made.

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

A large page can have a lot of picture thumbnails with most
of them offscreen. Lazy loading them should speed up the
page rendering.
@tvdeyen tvdeyen force-pushed the lazy-load-thumbnails branch 5 times, most recently from f0bf010 to e2875d3 Compare January 18, 2024 11:06
Use a broken image icon instead of a warning icon,
because the image could just be missing. A bit more padding
makes it look nicer in the thumbnail background.
Pry is not maintaned anymore.

The debug gem some how calls `File.exist?` and we
expect that in elements definitions spec. Luckily we can
simply remove that, because we only need to stub `File.read`
for this spec.
@tvdeyen tvdeyen added this to the 7.2 milestone Jan 24, 2024
@tvdeyen tvdeyen removed this from the 7.2 milestone Mar 11, 2024
Copy link

This pull request has not seen any activiy in a long time.
Probably because of missing tests or a necessary rebase.
This PR will be closed in 7 days if no further activity happens.

@github-actions github-actions bot added the Stale label May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant