1. A method of distributing content to a web browser from an edge server, comprising: detecting, by the edge server, in a file that the web browser is directed by the file to request one or more resources to be downloaded to the web browser, wherein the file is requested by the web browser to be sent to the web browser; determining, by the edge server, a network latency associated with the downloading of the one or more resources; and in the event that the determined network latency associated with the downloading of the one or more resources is above a predetermined threshold: selectively packaging, by the edge server, a subset of the one or more resources that the web browser is directed by the file to download; and sending in advance, by the edge server, the selectively packaged subset of the one or more resources to a device on which the web browser runs without receiving one or more requests for the one or more resources.