Hide
Search Results

Performance

Response time plays a key role in how users perceive your app; nobody likes a slow app. By tracking your app’s usage and adjusting its performance, you can dramatically improve the quality of your app’s user experience.

There are two approaches to improving your app’s performance. First, you can improve the actual response time by optimizing the app logic. Second, you can enhance the perceived performance by adjusting the order in which you load resources.

The following guidelines discuss both approaches:

  • Use YQL to cache queries. Combine multiple queries into one call.
  • Use unique URLs for resources such as images or media files. When you update the content of a resource, you should update the URL so that the cache is flushed with the updated content.
  • Monitor the response time of your server. If your app takes more than 9 seconds to load, YAP displays an error message to the user. If an image request takes longer than 3 seconds, the request is terminated and the image will not be available for your app.

IMAGE CACHING

YAP caches images from third-party servers, usually for a day or so. You can control this behavior by including the standard Cache-Control header in your HTTP responses.

Table of Contents