starting better image buffering
This commit is contained in:
parent
8f859a3f80
commit
3b7af74aa2
1 changed files with 6 additions and 1 deletions
|
@ -128,6 +128,10 @@ function ComicBook(id, srcs, opts) {
|
|||
|
||||
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) {
|
||||
|
||||
var page = new Image();
|
||||
|
@ -139,6 +143,7 @@ function ComicBook(id, srcs, opts) {
|
|||
if (loaded == buffer) { ComicBook.prototype.drawPage(); }
|
||||
};
|
||||
});
|
||||
*/
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue