lib/charlotte.js
function(next) {
            if (!inNativeApp) return next(null, false, null, null, null);
            if (resourceIsBinary(filePath)) {
              var fullPath = shared.removeUrlMultislashes(fileFullPathRoot + '/' + filePath),
                  xhr;
              xhr = new XMLHttpRequest();
              xhr.open("GET", cacheUrl, true);
              xhr.responseType = "blob";
              xhr.onload = function(e) {
                next(null, true, fullPath, xhr.response, null);
              };
              xhr.onerror = function(e) {
                next(null, false)
              }
              xhr.send(null);
            } else {
              ajax(cacheUrl, null, compileData, function(err, data, compiled) {
                next(null, !err, null, data, compiled);
              });
            }
          }
function(next) {
            if (!inNativeApp) return next(null, false, null, null, null);
            if (resourceIsBinary(filePath)) {
              var fullPath = shared.removeUrlMultislashes(fileFullPathRoot + '/' + filePath),
                  xhr;
              xhr = new XMLHttpRequest();
              xhr.open("GET", cacheUrl, true);
              xhr.responseType = "blob";
              xhr.onload = function(e) {
                next(null, true, fullPath, xhr.response, null);
              };
              xhr.onerror = function(e) {
                next(null, false)
              }
              xhr.send(null);
            } else {
              ajax(cacheUrl, null, compileData, function(err, data, compiled) {
                next(null, !err, null, data, compiled);
              });
            }
          }
function ( next ) { if ( ! inNativeApp ) return next ( null , false , null , null , null ) ; if ( resourceIsBinary ( filePath ) ) { var fullPath = shared . removeUrlMultislashes ( fileFullPathRoot + '/' + filePath ) , xhr ; xhr = new XMLHttpRequest ( ) ; xhr . open ( "GET" , cacheUrl , true ) ; xhr . responseType = "blob" ; xhr . onload = function ( e ) { next ( null , true , fullPath , xhr . response , null ) ; } ; xhr . onerror = function ( e ) { next ( null , false ) } xhr . send ( null ) ; } else { ajax ( cacheUrl , null , compileData , function ( err , data , compiled ) { next ( null , ! err , null , data , compiled ) ; } ) ; } }
try to retrieve from cache seed
try to retrieve from cache seed