source to code

Foresight.js judges if a user’s device and connection is suitable for high-resolution images and requests the appropriate image for the situation.