Ajax-Include-Pattern
Ajax-Include-Pattern copied to clipboard
data-scroll option
I would love to see an option added to this which loads the content when the element is scrolled to a visible area within the viewport, similar to David Walsh's ScrollSpy class.
Maybe some sort of tie-in to the data-media conditions you can already use would be nice. Rather than being particular to scroll, we could add an attribute that allows you to only include when it's visible in the viewport.
data-condition="visible"
?