A non-transitory machine-readable storage medium that provides instructions that, when executed by a processor of a client device, cause the processor to perform operations for automatically optimizing the loading of images of a web page, the operations comprising:
- receiving the web page that includes a plurality of references to a plurality of images respectively, wherein the web page includes code to optimize loading of the plurality of images;
- and
- executing the code to optimize the loading of the plurality of images, wherein executing the code causes a single request for at least two of the plurality of images to be generated and transmitted, wherein the single request is a single canonical URL that includes the URLs of the at least two of the plurality of images;
- responsive to the transmitted single request, receiving the at least two of the plurality of images in a single response, wherein the at least two of the images are sourced at different domains;
- and
- displaying the received at least two of the plurality of images in their respective appropriate locations.