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 loading images iframes #484

Merged
merged 6 commits into from
Nov 13, 2019
Merged

Lazy loading images iframes #484

merged 6 commits into from
Nov 13, 2019

Conversation

tunetheweb
Copy link
Member

Fixes #351.

Guys, I've had another go at this now the dust has slightly settled. I've used JSDOM as that regex thing we tried before just wasn't working.

I've also added some height and width attributes as part of this as advised by Dev Tools console.

Looks to be working well now.

Let me know your thoughts.

@rviscomi rviscomi added this to the Après Ski milestone Nov 13, 2019
@rviscomi rviscomi added the development Building the Almanac tech stack label Nov 13, 2019
Copy link
Member

@rviscomi rviscomi left a comment

Choose a reason for hiding this comment

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

This looks great! 👍

src/templates/en/2019/chapter.html Outdated Show resolved Hide resolved
@tunetheweb tunetheweb merged commit 4563fcf into master Nov 13, 2019
@tunetheweb tunetheweb deleted the lazy-loading-images-iframes branch November 13, 2019 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development Building the Almanac tech stack
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add native lazy loading for chapter images (inc iframes)
2 participants