Skip to content

Control which parts of a page load, and when. Fine-grained control using the loadindex attribute. Framework agnostic.

License

Notifications You must be signed in to change notification settings

o0101/load-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

⏱ load-control

Control which parts of a page load, and when. Fine-grained control using the loadindex attribute. Framework agnostic.

Tik tok tik tok...

loadindex

The API of this library is simple. Just put a loadindex on any element you want to control the load sequence of (how it displays into the page). Understood values are:

0 - loads in natural order.

1 - loads before anything in natural order.

n - loads before anything with loadindex n-1 or below.

And to prevent loading, use:

-1 - does not load, does not display.

In this way loadindex parallels the concepts of the global attribute tabindex

Get it

$ npm i --save load-control

About

Control which parts of a page load, and when. Fine-grained control using the loadindex attribute. Framework agnostic.

Resources

License

Stars

Watchers

Forks

Packages

No packages published