dist/crocodoc.viewer.js
function loadSVGText() {
        if (svgLoaded ||
            // @NOTE: these embed strategies don't require svg text to be loaded
            embedStrategy === EMBED_STRATEGY_BASIC_OBJECT ||
            embedStrategy === EMBED_STRATEGY_BASIC_IMG)
        {
            // don't load the SVG text, just return an empty promise
            return $.Deferred().resolve().promise({
                abort: function() {}
            });
        } else {
            return scope.get('page-svg', page);
        }
    }
function loadSVGText() {
        if (svgLoaded ||
            // @NOTE: these embed strategies don't require svg text to be loaded
            embedStrategy === EMBED_STRATEGY_BASIC_OBJECT ||
            embedStrategy === EMBED_STRATEGY_BASIC_IMG)
        {
            // don't load the SVG text, just return an empty promise
            return $.Deferred().resolve().promise({
                abort: function() {}
            });
        } else {
            return scope.get('page-svg', page);
        }
    }
function loadSVGText ( ) { if ( svgLoaded || // @NOTE: these embed strategies don't require svg text to be loaded embedStrategy === EMBED_STRATEGY_BASIC_OBJECT || embedStrategy === EMBED_STRATEGY_BASIC_IMG ) { // don't load the SVG text, just return an empty promise return $ . Deferred ( ) . resolve ( ) . promise ( { abort : function ( ) { } } ) ; } else { return scope . get ( 'page-svg' , page ) ; } }
Load svg text if necessary
@returns {$.Promise}
@private
Load svg text if necessary