Amazines Free Article Archive
www.amazines.com - Wednesday, November 14, 2018
Read about the most recent changes and happenings at Amazines.com
Log into your account or register as a new author. Start submitting your articles right now!
Search our database for articles.
Subscribe to receive articles emailed straight to your email account. You may choose multiple categories.
View our newest articles submitted by our authors.
View our most top rated articles rated by our visitors.
* Please note that this is NOT the ARTICLE manager
Add a new EZINE, or manage your EZINE submission.
Add fresh, free web content to your site such as newest articles, web tools, and quotes with a single piece of code!
Home What's New? Submit/Manage Articles Latest Posts Top Rated Article Search
Google
Subscriptions Manage Ezines
CATEGORIES
 Article Archive
 Advertising (133268)
 Advice (160757)
 Affiliate Programs (34733)
 Art and Culture (73637)
 Automotive (145514)
 Blogs (75002)
 Boating (9841)
 Books (17129)
 Buddhism (4122)
 Business (1328003)
 Business News (426289)
 Business Opportunities (366242)
 Camping (10948)
 Career (72742)
 Christianity (15834)
 Collecting (11636)
 Communication (115047)
 Computers (241935)
 Construction (38968)
 Consumer (49636)
 Cooking (17056)
 Copywriting (6567)
 Crafts (18210)
 Cuisine (7533)
 Current Affairs (20370)
 Dating (45767)
 EBooks (19684)
 E-Commerce (48190)
 Education (185100)
 Electronics (83429)
 Email (6389)
 Entertainment (159778)
 Environment (28928)
 Ezine (3038)
 Ezine Publishing (5443)
 Ezine Sites (1552)
 Family & Parenting (110873)
 Fashion & Cosmetics (196377)
 Female Entrepreneurs (11840)
 Feng Shui (130)
 Finance & Investment (310210)
 Fitness (105794)
 Food & Beverages (62813)
 Free Web Resources (7936)
 Gambling (30211)
 Gardening (25060)
 Government (10514)
 Health (629003)
 Hinduism (2156)
 Hobbies (44026)
 Home Business (91542)
 Home Improvement (251217)
 Home Repair (46093)
 Humor (4801)
 Import - Export (5443)
 Insurance (45082)
 Interior Design (29541)
 International Property (3485)
 Internet (190953)
 Internet Marketing (146277)
 Investment (22822)
 Islam (1168)
 Judaism (1357)
 Law (80449)
 Link Popularity (4592)
 Manufacturing (20798)
 Marketing (98723)
 MLM (14136)
 Motivation (18208)
 Music (26996)
 New to the Internet (9475)
 Non-Profit Organizations (4048)
 Online Shopping (129603)
 Organizing (7796)
 Party Ideas (11854)
 Pets (38084)
 Poetry (2234)
 Press Release (12666)
 Public Speaking (5620)
 Publishing (7522)
 Quotes (2407)
 Real Estate (126601)
 Recreation & Leisure (95236)
 Relationships (87424)
 Research (16151)
 Sales (80293)
 Science & Technology (110123)
 Search Engines (23445)
 Self Improvement (153064)
 Seniors (6220)
 Sexuality (35933)
 Small Business (49274)
 Software (82913)
 Spiritual (23441)
 Sports (116456)
 Tax (7657)
 Telecommuting (34074)
 Travel & Tourism (306813)
 UK Property Investment (3117)
 Video Games (13420)
 Web Traffic (11723)
 Website Design (56774)
 Website Promotion (36554)
 World News (1000+)
 Writing (35751)
Author Spotlight
DAYA MUKHERJEE

Daya Mukherjee is a Senior Content Writer and Editor working for a Remote Staffing Outsourcing compa...more
GEOFF LAUGHTON

Over the last 22 years, I’ve been on a self-renaissance facilitated by many transformational worksho...more
MILECIA MCG

Hey there. I've been programming in some way, shape, or form for the past decade. My background is i...more
ALEN OWEN

I am an essay writer with vast experience in data analysis, PowerPoint writing and research paper ed...more
ANISH SAH

My Name is Anish Sah, I am an Internet Marketing and SEO Expert, Social Media Guru and young Entrepr...more


What Is Lazy Loading? by Milecia McG






What Is Lazy Loading? by
Article Posted: 10/25/2018
Article Views: 223
Articles Written: 6
Word Count: 526
Article Votes: 0
AddThis Social Bookmark Button

What Is Lazy Loading?


 
Career,Software,Website Design
A key skill that every developer needs is smart laziness. It's important to do the least amount of coding to get a function to work because that will help prevent performance and memory issues. That's why we're going to talk about lazy loading today.

Lazy loading is a clever concept that can improve page load speeds dramatically. It's pretty simple at the core. All lazy loading means is that your page doesn’t load certain elements until someone is looking at them.

You've probably seen this quite a bit. Whenever you go to those websites that have the infinite scroll on the page, that's using some form of lazy loading. There's usually some kind of placeholder or loading wheel to let you know that the content is about to show any second.

It's used a lot when it comes to loading images and videos because these resources take up a lot of memory and bandwidth to load and that slows down a website. When you lazy load images and videos, you aren't using the real thing at first. You'll have some kind of placeholder just to keep the spot open.

Then as someone scrolls down the page and the picture comes into view it magically pops up. That's because you have an event listener that catches when the picture moves onto the screen. That's the basic way to handle lazy loading. It gets the job done and you get to speed up your website fairly easily.

But there are other, better ways of doing this. One of those methods is using a JavaScript library to handle the lazy loading for you. You don't have to write any code. All you have to do is use the right parameters in the right places in the library and you're good to go.

Here's a few good lazy load libraries:

• Lazysizes https://github.com/aFarkas/lazysizes

• Yall.js https://github.com/malchata/yall.js

• Lozad.js https://github.com/ApoorvSaxena/lozad.js

Another option if you want to get more hands on in the code is to use the intersection observer object. This will give you access to methods that make it super easy to determine whether an element is on the screen or not and other useful information. You can learn more about how to use the intersection observer here: https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API.

Now you know what lazy loading is and a few different ways you can use it in your code. Just a pro tip here. You might not want to lazy load everything on the page. If you can regular load the images or videos that will be at the top of the page, then do that. Lazy loading is more helpful when there's a lot of content further down the page and it slows down that initial load time.

Hopefully you were able to get something out of this! Feel free to leave any questions or comments below.

Hey you. You can get a free JavaScript tutorial here: Get your copy

Over 50 people downloaded it in just the past week so there must be something good in it.

Related Articles - javascript, webdev, learning, beginners,







Email this Article to a Friend!

Receive Articles like this one direct to your email box!
Subscribe for free today!

 Rate This Article  
Completely useless, should be removed from directory.
Minimal useful information.
Decent and informative.
Great article, very informative and helpful.
A 'Must Read'.

 

Do you Agree or Disagree? Have a Comment? POST IT!

 Reader Opinions 
Submit your comments and they will be posted here.
Make this comment or to the Author only:
Name:
Email:
*Your email will NOT be posted. This is for administrative purposes only.
Comments: *Your Comments WILL be posted to the AUTHOR ONLY if you select PRIVATE and to this PUBLIC PAGE if you select PUBLIC, so write accordingly.
 
Please enter the code in the image:



 Author Login 
LOGIN
Register for Author Account

 

Advertiser Login

 

ADVERTISE HERE NOW!
   Limited Time $60 Offer!
   90  Days-1.5 Million Views  

 

Great Paranormal Romance

World News


LAURA JEEVES

At LeadGenerators, we specialise in content-led Online Marketing Strategies for our clients in the t...more
STEPHEN BYE

Steve Bye is currently a fiction writer, who published his first novel, ‘Looking Forward Through The...more
GENE MYERS

Author of four books and two screenplays; frequent magazine contributor. I have four other books "in...more
SUSAN FRIESEN

Susan Friesen, founder of the award-winning web development and digital marketing firm eVision Media...more
JAVIER VBOIX

For the time being just a newbie in the Insurance Industry but a quick learner, soon-to-be expert Ja...more
SANDY FISCHEL

Sandy Fischel is the marketing director at And Above All YOGA, a wholly owned division of The Fische...more
MICHAEL BRESCIANI

Rev Bresciani is the author of two Christian books. One book is an important and concisely written b...more
CHRISTOPHER EVANS

Christopher is based in the U.K. and is the author and founder of Critical Eye. ...more
STEVERT MCKENZIE

Stevert Mckenzie, Travel Enthusiast. ...more
MICHAEL MIFSUD

Michael Mifsud was a House of Commons Commonwealth correspondent at the age of 16. He published Brit...more

HomeLinksAbout UsContact UsTerms of UsePrivacy PolicyFAQResources
Copyright © 2018, All rights reserved.
Some pages may contain portions of text relating to certain topics obtained from wikipedia.org under the GNU FDL license