Infinite scrolling with change of image sources in JavaScript. The Waypoint component self is used in combination with pe:javascript. In the callback function we get the current waypoint object (image). ${showcase:getFileContent('/sections/waypoint/examples/example-infiniteScrollingTwo.xhtml')}