Never load a full page on every request again.
Download the production version or the development version.
Include it in your web pages(1kb minified and gzipped):
<script src="joconut.min.js"></script> <!-- you must include jQuery before that -->
That's it! Now, all your local links will not cause page refresh. Remote links will work as expected.
- Lightweight(1kb minified and gzipped)
- Detects and loads scripts and stylesheets from fetched pages, if they do not exist in the current one
- HTML5 History API support with fallback to location.hash
- 1kb minified and gzipped
- Auto-detects and loads JS and CSS from fetched pages, if needed
- No need to set up or configure
You should have node to be installed. cd test && npm i connect route66 && node server.js
. Navigate to http://localhost:3000 after that and play.
Copyright (c) 2012 Vadim Demedes
Licensed under the MIT license.