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

Home page Hero Image fix #604

Merged
merged 3 commits into from
Dec 31, 2019
Merged

Home page Hero Image fix #604

merged 3 commits into from
Dec 31, 2019

Conversation

tunetheweb
Copy link
Member

Stop loading both desktop and mobile image on home page and only load appropriate image.

Fixes #361

I went with the wrapper display:none of a background-image fix rather than <picture> or <img srcset> method because they no not allow you to hide an image based on media queries which means you can't have two fall backs. And since some clients (e.g. IE11, Android 4.4) do not support <picture>, I thought best to implement the other way.

@tunetheweb tunetheweb added development Building the Almanac tech stack design Creating the Almanac UX labels Dec 28, 2019
Copy link
Member

@catalinred catalinred left a comment

Choose a reason for hiding this comment

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

Looks good to me.

The thing is that right now, these two images switched on small and large resolutions are almost identical. So hopefully, in the future, we'll be able to improve that by merging them into a unique image.

Happy new year! :)

@tunetheweb tunetheweb merged commit 05c0bb2 into master Dec 31, 2019
@tunetheweb tunetheweb deleted the non-chapter-picture-images branch December 31, 2019 15:02
@tunetheweb
Copy link
Member Author

The thing is that right now, these two images switched on small and large resolutions are almost identical. So hopefully, in the future, we'll be able to improve that by merging them into a unique image.

Good call!

Happy new year! :)

And to you!

@tunetheweb tunetheweb mentioned this pull request Jan 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design Creating the Almanac UX development Building the Almanac tech stack
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Only load mobile and desktop images appropriately
2 participants