Hi czlczlczl,
In XAML,
NavigationCacheMode is a good choice to cache data for a page, but unfortunately in JavaScript there is no such API, so the answer for your title is No.
But you could initialize the data in the ready function of the page, when you request Web resources by using
WinJS.xhr, the response might be cached, which means that later requests will return the version of the resource that already exists on the client computer rather
than resending the request. Kind of cache actually.
Best Regards,
--James
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.