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

Deferring of offscreen images feature added. #141

Merged
merged 4 commits into from Jan 10, 2021

Conversation

inomag
Copy link
Contributor

@inomag inomag commented Jan 6, 2021

Description

Added a new lazy loading feature for faster rendering of webpages containing several .jpg, .jpeg, .svg & .png files.

Fixes #78

Index.html Before
https://user-images.githubusercontent.com/66073063/103769825-00231300-504b-11eb-89b7-3e25412f6db2.mp4

Index.html After
https://user-images.githubusercontent.com/66073063/103770007-4aa48f80-504b-11eb-81a4-eb46de56b3bf.mp4

Similar changes are also done in team.html & event.html

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)
  • Declared a new class .lazyload in images.
  • Replaced src attribute with data-src which will be change into src once image is in viewport, hence rendering images only when they are in viewport.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

@lakshyatyagi24 lakshyatyagi24 merged commit 3056e1c into StudentCode-in:master Jan 10, 2021
@inomag inomag deleted the feature/lazyLoad branch January 11, 2021 13:52
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.

Deffer Offscreen Images
2 participants