Embed Ressources

It is possible to embed resources during the compilation and/or the execution.

Compilation

In App's Json, embed_url field indicates a text file which contains all the resources that should be embedded in the application during the compilation.

The text file is structured in this way : there is one url per line. You can put as many resources as you want.

Resources embedded during compilation will be cached forever and will never has to be downloaded again which allows very fast page loading.

Execution

In App's Json, embed_runtime_url field refers to a text file which contains all the resources that should be embed in the application at run time.

This file has exactly the same format as the embed_url.

All the resources presented in it will be downloaded by AppDeck exactly at the same time that application will be launched. This solution might be useful to pre-load images of recent news.

A resource embedded at run time is not always cached. In order to be cached, the resource has to match one of the registered cache regexp.