1. A method, comprising: at a client device: presenting, to a user, content from a webpage, wherein the content includes an online application; detecting behavior of the user with respect to the content, including determining a number of times the web page has been accessed by the user; in accordance with a determination that the number of times the web page has been accessed by the user exceeds a threshold, downloading a first plurality of resources, wherein the first plurality of resources is at least a subset of resources specified in a resources list and the first plurality of resources is particular to the online application; in accordance with a determination that the number of times the web page has been accessed by the user does not exceed the threshold, downloading a second plurality of resources, wherein the second plurality of resources is randomly selected from the resources specified in the resources list; receiving a user input selecting an online application; and in response to the user input selecting the online application, loading respective downloaded resources that correspond to the selected online application.