ADF12cR2: Boost Page Image Rendering with Lazy Loading
In Oracle WebCenter Portal or Oracle ADF Applications is very common the usage of some Image Galleries or other kind of web content pages with Images or Videos in high resolution. In Oracle ADF can be applied the same techniques used in the common Web Sites developed by using JavaScript technologies. This example shows how to use one of the many Image Lazy Load implementation you can find in Internet nowadays. In this case I will make use of https://github.com/verlok/lazyload https://github.com/DanielMerchan/adf How to use the basics of this library?. It is required to import the lazyload.js javascript library, populate the data-src HTML attribute in the img tag as explained in the LazyLoad GitHub. But, how can I add the data-src attribute in an ADF Image tag?. The ADF Operator Tag <af:passThroughAttribute> can be used with any ADF tag for rendering custom HTML attributes which are not in the out-of-the-box Catalog. <af:document title="untitled1.j...