Pre‐caching images - nth-iteration/savvy GitHub Wiki

It may be useful to pre-cache images used in your app. This is particularly the case for large image, such as background. Even for locally-accessed images, there may be a delay in displaying images the first time they are access and pre-caching images can improve the user's perception of performance.

To pre-cache images, include a reference to the image in app.xml as an <img> node child of the <app> node:

<?xml version="1.0" encoding="UTF-8" ?>
<app>
  <img>assets/images/photo.jpeg</img>
</app>

This will cause the image to be pre-cached when Savvy initialises.

⚠️ **GitHub.com Fallback** ⚠️