starting better image buffering
This commit is contained in:
parent
8f859a3f80
commit
3b7af74aa2
1 changed files with 6 additions and 1 deletions
|
@ -127,7 +127,11 @@ function ComicBook(id, srcs, opts) {
|
||||||
ComicBook.prototype.preload = function (srcs) {
|
ComicBook.prototype.preload = function (srcs) {
|
||||||
|
|
||||||
if (srcs.length < buffer) { buffer = srcs.length; } // don't get stuck if the buffer level is higher than the number of pages
|
if (srcs.length < buffer) { buffer = srcs.length; } // don't get stuck if the buffer level is higher than the number of pages
|
||||||
|
|
||||||
|
function preload(srcs) {
|
||||||
|
|
||||||
|
}
|
||||||
|
/*
|
||||||
srcs.forEach(function(src, i) {
|
srcs.forEach(function(src, i) {
|
||||||
|
|
||||||
var page = new Image();
|
var page = new Image();
|
||||||
|
@ -139,6 +143,7 @@ function ComicBook(id, srcs, opts) {
|
||||||
if (loaded == buffer) { ComicBook.prototype.drawPage(); }
|
if (loaded == buffer) { ComicBook.prototype.drawPage(); }
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
*/
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue