Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 03-09-2015, 06:06 AM   #1
momoha
Annabelle Viau
momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.
 
momoha's Avatar
 
Posts: 43
Karma: 16664
Join Date: Jan 2015
Location: Rishikesh, India
Device: iPad, Kobo, Windows 10 (ADE, Azardi), Android (Google Books, Bluefire)
Loading page per page option for iBooks?

Hi,

I’m making a fixed-layout with CSS3 animations and some javascript. I have some issues with it on iBooks; it crashes when the book is opened.

Someone told me it is possible to load each page by itself, page per page, instead of loading all of the pages as soon as the book is opened.

Any informations on that? I’ve been searching but couldn’t find anyting.

Thanks!
momoha is offline   Reply With Quote
Old 03-09-2015, 07:23 AM   #2
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
It is probably not the size that is the culprit. I suspect faulty coding. Does it validate? Try it without the javascript.
Toxaris is offline   Reply With Quote
Advert
Old 03-09-2015, 07:48 AM   #3
momoha
Annabelle Viau
momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.
 
momoha's Avatar
 
Posts: 43
Karma: 16664
Join Date: Jan 2015
Location: Rishikesh, India
Device: iPad, Kobo, Windows 10 (ADE, Azardi), Android (Google Books, Bluefire)
Quote:
Originally Posted by Toxaris View Post
It is probably not the size that is the culprit. I suspect faulty coding. Does it validate? Try it without the javascript.
Oh, I forgot to mention that on my iPad it’s working perfectly. The problem is happening on another iPad. It’s also working perfectly on Readium.

Also, it does validate.

This is what made us think that the issue doesn’t come from the code, but from something else.
momoha is offline   Reply With Quote
Old 03-09-2015, 11:54 AM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by momoha View Post
Oh, I forgot to mention that on my iPad it’s working perfectly. The problem is happening on another iPad. It’s also working perfectly on Readium.

Also, it does validate.

This is what made us think that the issue doesn’t come from the code, but from something else.
What version iOS are you using and on what iPad? Also, what version iOS and what version iPad is this other iPad? An iPad 1 won't work the same as any other iPad as it's stuck with iOS 5 and has less memory to run apps. Also the iPad 1 has an older version of iBooks and it might not work with your book.

The iPad 2 also is different then newer iPads as it only has 512MB of ram where the newer iPads all have 1GB (Ipad Air 2 has 2GB). So this book could be too memory intensive for anything below an iPad 3.

If you have an iPad Air 2, then maybe your book needs more then 1GB to load all at once.

We won;t have any idea until you tell us what iPads are being used for testing.

Oh and specifying multiple as your devices doesn't help at all when you ask questions like this.
JSWolf is offline   Reply With Quote
Old 03-10-2015, 06:44 AM   #5
momoha
Annabelle Viau
momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.
 
momoha's Avatar
 
Posts: 43
Karma: 16664
Join Date: Jan 2015
Location: Rishikesh, India
Device: iPad, Kobo, Windows 10 (ADE, Azardi), Android (Google Books, Bluefire)
Ok so actually the device with problems is an iPhone 6 with iBooks 4.1.1.

This morning, we were able to see 4 pages before it crashed, but it was very slow, lagging.

We have other books of the same kind (with animations) and on the same iPhone, there’s no issue...

By the way, I didn’t see the point of writing which devices I own considering our books have to work on as many devices as possible anyways...
momoha is offline   Reply With Quote
Advert
Old 03-10-2015, 09:26 AM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by momoha View Post
Ok so actually the device with problems is an iPhone 6 with iBooks 4.1.1.

This morning, we were able to see 4 pages before it crashed, but it was very slow, lagging.

We have other books of the same kind (with animations) and on the same iPhone, there’s no issue...

By the way, I didn’t see the point of writing which devices I own considering our books have to work on as many devices as possible anyways...
But if you do say what devices you are suing, someone might know why it works on yours and not another. he more information you put out there, the better chance of someone coming up with a solution.
JSWolf is offline   Reply With Quote
Old 03-10-2015, 10:23 PM   #7
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Quote:
Originally Posted by momoha View Post
Ok so actually the device with problems is an iPhone 6 with iBooks 4.1.1.

This morning, we were able to see 4 pages before it crashed, but it was very slow, lagging.
Are you using CSS animation on margins and/or position, by some chance? Moving large raster images?
dgatwood is offline   Reply With Quote
Old 03-10-2015, 11:48 PM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Do you perhaps have an iPad Air 2 which has 2GB of system ram?
JSWolf is offline   Reply With Quote
Old 03-11-2015, 09:15 AM   #9
momoha
Annabelle Viau
momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.
 
momoha's Avatar
 
Posts: 43
Karma: 16664
Join Date: Jan 2015
Location: Rishikesh, India
Device: iPad, Kobo, Windows 10 (ADE, Azardi), Android (Google Books, Bluefire)
I really don’t get it. I did many tests, and at some point the book always crash. Here’s what I tested:
  • Without javascript
  • Without animations
  • With all the CSS sheets empty
  • Without the images
  • Without the fonts

And I don’t have an iPad air...
momoha is offline   Reply With Quote
Old 03-12-2015, 01:01 PM   #10
odedta
Addict
odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.
 
Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
Did you try to update your iPad and reinstall iBooks? if that doesn't work i'm afraid you'll have to post some code :/
odedta is offline   Reply With Quote
Old 03-13-2015, 01:25 AM   #11
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Quote:
Originally Posted by momoha View Post
I really don’t get it. I did many tests, and at some point the book always crash. Here’s what I tested:
  • Without javascript
  • Without animations
  • With all the CSS sheets empty
  • Without the images
  • Without the fonts

And I don’t have an iPad air...
Back in iOS 7, I kept running into a bad kernel memory leak that caused apps to crash en masse if the device had been up and running without a reboot for 30+ days (depending on usage). The problem might still happen in iOS 8. So if you haven't tried shutting the device completely off and booting it back up, try that first.

Short of something like that, I'd be surprised if the problem were caused by a lack of RAM, particularly given that the device that is failing has at least as much RAM as the one that is working.

With that said, if you want to try to experiment with RAM reduction, the iBooks rendering engine (WebKit) always has just a single HTML file in memory at any given point in time, discarding the previous one as it passes a page boundary. Of course, there's also a back/forward cache and various other caches, so that's not precisely true, but either way, the less you put in a given HTML file, the less should be in memory at any given moment, and those caches are thrown away if you run out of memory, so they shouldn't be a problem.

I mean, I suppose it is possible that iBooks might be doing something silly like extracting the entire Zip archive in RAM, but I doubt it.


A couple more questions:

1. Does it fail reliably when you advance to any particular page? Or away from any particular page?

2. Could you paste in the crash log file? (It might not be of any help, but then again, it might.)
dgatwood is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PDF -> AWZ3: no go-to page option sepandee Conversion 4 01-31-2014 01:37 PM
K3 - Is the 'Every 6th page refresh' option possible? Frothy Kindle Developer's Corner 4 01-01-2013 09:05 PM
Page Refresh Option jpcapili Amazon Kindle 1 11-21-2011 02:54 PM
Page Loading Issue MorganM Kobo Reader 6 03-14-2011 09:20 AM


All times are GMT -4. The time now is 04:25 PM.


MobileRead.com is a privately owned, operated and funded community.