microgram icon indicating copy to clipboard operation
microgram copied to clipboard

Fetch `photos/index.json` "locally"

Open iwittkau opened this issue 7 years ago • 0 comments

To reduce load times, a XHR can load the photo feed directly from within the page instead of calling back to https://microgram.cleverdevil.io/.

xhr.open('GET', "/photos/index.json", true);

instead of

xhr.open('GET', "https://microgram.cleverdevil.io/", true);

iwittkau avatar Jan 23 '19 16:01 iwittkau