Lazycontent

Attributes

data-lazycontent

URL with Hash that specifies the content to be loaded. e.g. page.html#mycontent

This will lead into a request for page.html and the element with the id mycontent will replace the intitial element.

Note: page-1.html#a and page-1.html#b will lead to only one request, prioritised by the highest given priority.

data-lazycontent-priority

Content will be queued and sorted by priority. The lower the number, the higher the priority.

Default: 100

data-lazycontent-mode

If set to visibility the content will only be loaded (or rather put into the loading queue) once it becomes visible.

height

Please define a default height for the container that's as close as possible to the expected content's height.

Example

Open example page

Visibility

Open example page