1.2.2 • Published 7 years ago

lazyfetch v1.2.2

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

 

  • only 376 bytes (gzip)
  • ignored on the server (relevant for server side rendering)

 

Usage

npm install lazyfetch --save

import lazyfetch from 'lazyfetch'

lazyfetch(
  /* list of urls to load */
  [
    'https://example.com/script.js',
    'https://example.com/styles.css'
  ],
  /* callback to execute after all of the urls have been fetched */
  () => {
    // ...
  }
)

or load in the browser

<script async src="https://unpkg.com/lazyfetch/lib.js"></script>

 

like it?

:star: this repo

 

license

MIT © siddharthkp

Logo credits to Chris Lau

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.7

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.1

7 years ago