Lazy loading

Since lazy loading decreases bandwidth and subsequently server resources, it is a strong contender to implement in a website, especially in order to improve user retention by having less delay when loading the page, which may also improve search engine optimization (SEO).

[6] Setting the value to lazy will fetch the resource only when it is required (such as when an image scrolls into view when a user scrolls down), while setting it to eager, the default state, the resource will be immediately loaded.

For example, lazy loading for a widget can be implemented in the C# programming language as such: Or alternatively, with the null-coalescing assignment operator ?

?= This method is the simplest to implement, although if null is a legitimate return value, it may be necessary to use a placeholder object to signal that it has not been initialized.

It may initially only contain the object's identifier, but it loads its own data the first time one of its properties is accessed.