Echo JS 0.11.0

<~>

davidchase 4358 days ago. link 1 point ▲ ▼
Interesting project, are you using jQuery for just ajax?
mavenave 4358 days ago. link 1 point ▲ ▼
I also use it for selecting script tags, image tags and link (CSS) tags.
josephclay 4358 days ago. link 1 point ▲ ▼
Are you interested in trying to remove jQuery as a dependency?  It appears a lot of the DOM manip could be done in plain js. Could also use a micro lib for the AJAX.
mavenave 4358 days ago. link 0 point ▲ ▼
Currently, no, I prefer sticking to jQuery. DOM manipulation in browsers differ a lot and jQuery evens it out very nicely.

I probably will make a separate script just for without-jQuery in the future.
mulhoon 4359 days ago. link 1 point ▲ ▼
Spotted something similar here.. https://github.com/addyosmani/basket.js

I'm uncertain to the JS security level when doing stuff like this. It doesn't seem like something browsers would allow (the manipulation of javascript files in this way)

Good work.
mavenave 4359 days ago. link 1 point ▲ ▼
Basket.js is one of the projects that motivated me to start inscribe.js. Basket.js caches only scripts. But inscribe.js stores whole pages, along with assets individually. With that, it then renders the page from the localStorage.
mxxx 4359 days ago. link 1 point ▲ ▼
cool idea. i'm kind of surprised with the lack of things i've seen done with localStorage, given how much potential it has to be a really useful API.
ch8230 4359 days ago. link 1 point ▲ ▼
Is it meant to prefetch static pages or can I perhaps prefetch images or CSS files?
mavenave 4359 days ago. link 2 points ▲ ▼
It is meant to prefetch static pages, images, CSS files and JavaScripts. :)

Now it only works with static pages and images. CSS files and JavaScripts prefetching are not yet stable.
mulhoon 4359 days ago. link 1 point ▲ ▼
Sweet. Would be nice to see a hosted demo.
mavenave 4359 days ago. link 1 point ▲ ▼
Hi guys, I'm the one who wrote inscribe.js. Happy to answer any of your questions.