Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Latest commit

 

History

History
26 lines (16 loc) · 347 Bytes

fetchOnDemand.md

File metadata and controls

26 lines (16 loc) · 347 Bytes

Fetch-On-Demand

Fetches the image as soon as we scroll to it's position on the page.


This is fairly easy to set-up.

How it's done in React and Preact:

return (
    <Image fetchOnDemand src="someImageURL"/>
)

Also works in Vue:

<template>
    <Image fetch-on-demand src="someImageURL"/>
</template>