This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A simple CoinGate Node.js class based on | |
* @link https://github.com/coingate/coingate-php | |
*/ | |
var VERSION = '3.0.1'; | |
var LIVE_ENDPOINT = 'https://api.coingate.com/v2'; | |
var SANDBOX_ENDPOINT = 'https://api-sandbox.coingate.com/v2'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Performance tests such as Google Lighthouse often complain about below the fold images while lazy loading | |
// techniques may introduce a flash effect for images on bigger screens | |
// This snippet shows a solution to instantly display images as if loaded using src="" while maintaining | |
// the lazy loading benefit on smaller screens. | |
// Tip: a second and potentially better technique is to rewrite lazy loaded images to regular src="" images in a Service Worker. | |
// this snippet depends on in-view (5kb) | |
// @link https://github.com/camwiegert/in-view/ |