TradeMe / bootup.js

Cache and load static files from local storage.
MIT License
820 stars 46 forks source link

Advanced File Loading, not working... #12

Open tadaskarpavicius opened 11 years ago

tadaskarpavicius commented 11 years ago

Have you tried your examples? I can't get it to work.

When i launch page with empty "localStorage", everything works fine, and main_template.html appears in the body. Also "var cachedFiles" contains "getFile" method.

But when i refresh the page "var cachedFiles" becomes undefined and i get "Uncaught TypeError: Cannot call method 'appendChild' of null" (bootup.js line 177).

Do i need to get html files manually from cache?

djmc commented 11 years ago

That's weird, I'll take a look at it as it is how it's implemented on Trade Me.