dist/crocodoc.viewer.js
function shouldLoadPage(index) {
        var page = pages[index];

        // does the page exist?
        if (page) {

            // within page load range?
            if (indexInRange(index)) {
                return true;
            }

            // is it visible?
            if (pageIsVisible(index)) {
                return true;
            }
        }

        return false;
    }
function shouldLoadPage(index) {
        var page = pages[index];

        // does the page exist?
        if (page) {

            // within page load range?
            if (indexInRange(index)) {
                return true;
            }

            // is it visible?
            if (pageIsVisible(index)) {
                return true;
            }
        }

        return false;
    }
function shouldLoadPage ( index ) { var page = pages [ index ] ; // does the page exist? if ( page ) { // within page load range? if ( indexInRange ( index ) ) { return true ; } // is it visible? if ( pageIsVisible ( index ) ) { return true ; } } return false ; }
Returns true if the given page index should be loaded, and false otherwise
@param   {int} index The page index
@returns {bool}      Whether the page should be loaded
@private
Returns true if the given page index should be loaded and false otherwise