17.
You don’t need to be in a marketplacewindow.navigator.mozApps.install(url);https://developer.mozilla.org/en-US/docs/Apps/ Getting_Started#Installing_the_app

18.
Stuff to be aware of...• Don’t use eval (that rules out a lot of libraries)!• Performance • Don’t use template libraries (like mustache.js) • Do you really need jQuery / mootools? • Take a look at the memory

23.
Import ePubs (II)• An ePub is just a zip containing HTML + metadata• Use js-inﬂate + js-unzip to read this zip ﬁle• Use an extended version of js-epub to parse the contents

24.
Display eBooks• Code inspired by Monocle• Books are rendered using CSS3’s columns rules to create the “pages” (so content is a veeery long horizontal stripe)• To improve performance, books are divided into “chunks”, based on the table of contents