Introducing Tour Preloading
We’ve just introduced support for preloading tours in Tour My App.
What is tour preloading?
Normally, when a tour is run, the tour data is downloaded from the server and then displayed on the screen. This process may lead to a short delay (usually less than a second) while the tour data is downloaded. When we know that the user is likely to trigger a particular tour on a page, we can preload the tour data so that the tour can be displayed immediately. Here is an example:
-
The page contains a help button
-
When the user clicks help, a tour is triggered to walk the user through the page
-
If we preload the tour, the required data will be downloaded in the background immediately after the page loads
-
So when the user clicks the help button, the tour is displayed immediately without needing to download the data
How do you implement tour preloading?
The way to preload a tour is to add this line just after the tour.start() line in the integration:
tour.preload("<tour_id>");
Use the preloading feature for cases which require a user interaction to run a tour. It is not needed for tours that are run automatically when a user visits a page. (Click here for more on different ways to trigger a tour)
Comments