“Cannot read property 'load' of undefined”
问题 I'm attempting to follow this documentation to integrate with Google sign in, though I'm running into this error in console: Uncaught TypeError: Cannot read property 'load' of undefined at script.js:1 script.js : window.gapi.load('auth2', function() { console.log('Loaded!'); }); I get the error about half of the time, and inspecting the network panel in Chrome, it only happens when the following resource is not loaded: https://apis.google.com/_/scs/apps-static/_/js/k=oz.gapi.en.d2dliHDvPwE.O