Glance dashboard - pre-cached data

How to implement lazy loading and caching in Glance dashboard.