Alexa Skills for Enterprises

Lazy loading is the method of loading only the required data and delaying the rest unless or otherwise it is fetched by the user. It is a powerful optimization technique used in all Alexa skill development companies to avoid unnecessary bulk loading at the user’s first search result.

It is most popular and predominantly used during the creation of websites and mobile applications. The best part is that you can build lazy loading with Alexa skill development using the latest Alexa Presentation Language (APL) version, 1.3.

All Alexa multimodal devices that support APL also support the new APL 1.3 features. It also includes the capability to form lazy loading lists. This feature is achievable by making changes to the data sources inclusive of the new data source type, and dynamicListIndex), a new request type, and new directives for creating more number of dynamic lists.

The main advantage of these new features is that one can build a list with infinite items to display to your customer. It scrolls infinitely and adds or removes the item vales provided on the list.

Improvements In The Data Source

In the new version of APL, data sources allow data to bind with certain parts of the APL document on the device. Earlier APL versions had only the object data source and the untyped data source.

The object data source is used with text and speech transformers – the ssmlToSpeech or the textToHint. The untyped data source is used to bind with the APL document. In earlier versions, the whole of the APL data source object had to bind with the payload parameter in the response. Although this works well for backward compatibility in the current APL documents, the top-level variable names in the data source to your APL document has to be passed instead in versions 1.3 and onwards.

Getting Started with Lazy Loading List creation with Alexa Skills

The dynamicIndexList should bind to the “data” property of a pager or sequence. A new request for data is initiated by the Alexa-enabled multimodal device the loadIndexListDataRequest.

A few pointers that you may come across:

  • Input the relevant data for the starting index and the number of new items that you want to display. It bounds within the data source index.
  • There are a couple of documents arising from the named token, another tied to the data source, named “listId,” which is tied to the identifier dynamicIndexList data source. The third token is in correlation to the request and your response, the “correlation token.”

The outcome of this is that you get to scroll over hundreds of inputs and select them by either touch or voice. It prioritizes your selection to the top of the list and performs the requested action.

Some of the advantages of using lazy loading are as follows:

  • Brings down initial load time: Lazy loading can reduce the unnecessary page weight of a webpage and enables quick page loading time.
  • Bandwidth maintenance: The bandwidth is maintained throughout by delivering only the requested content to users
  • System resource management – It conserves the resource on both server and client-side because not all the images require JavaScript and other code renderings

We are a specialized Alexa skills development company in the USA. We offer the best solutions for Artificial Intelligence in web development. Get to know more from our experts. For custom web and mobile app development, reach us now at +1 408-400-3737.


Rate Us!

Quick Inquiry

Quick Inquiry