News for hackers. Stuff that matters.
Re:Show HN: Joconut - Smart PJAX jQuery plugin in 1kb by prezjordan on Sunday June 03, 2012 @04:50PM (#4061712)
What exactly does it do? I'm not sure if I follow completely.
Re:Show HN: Joconut - Smart PJAX jQuery plugin in 1kb by pygorex on Sunday June 03, 2012 @05:08PM (#4061761)
Loads pages via AJAX and updates the browser history using `pushState`. This is an alternative to the PJAX library: https://github.com/defunkt/jquery-pjax

Use either if you have an irrational aversion to page reloads.

Snark aside - jQuery Mobile uses a similar technique to cache entire pages in the DOM and for page transitions.

Re:Show HN: Joconut - Smart PJAX jQuery plugin in 1kb by chrischen on Sunday June 03, 2012 @05:23PM (#4061792)
Or use if your site plays music :).
Re:Show HN: Joconut - Smart PJAX jQuery plugin in 1kb by DigitalSea on Sunday June 03, 2012 @07:51PM (#4062080)
Beverly Hills Cop MIDI track? Yes.
Re:Show HN: Joconut - Smart PJAX jQuery plugin in 1kb by vdemedes on Sunday June 03, 2012 @05:05PM (#4061750)
It allows loading pages without refreshing browser window. User will not notice any loading indicator/progress, pages will instantly "replace" each other.
Re:Show HN: Joconut - Smart PJAX jQuery plugin in 1kb by pygorex on Sunday June 03, 2012 @05:15PM (#4061775)
> User will not notice any loading indicator/progress, pages will instantly "replace" each other

Um, no. The pages won't "instantly" load - the browser still has to make a round trip to load the page content.

A loading or progress indicator should still be shown letting the user know that this round trip is taking place - especially important if you're on a slow US cell network. If a user is on a slow connection and no visual feedback is given they may end up mashing a link, making the load time worse - or, worse yet, assume the site is broken.

Re:Show HN: Joconut - Smart PJAX jQuery plugin in 1kb by vdemedes on Monday June 04, 2012 @01:51AM (#4062835)
Agree, I will add "before" and "after" events to the Joconut, so that developer can listen to them and display progress indicator he likes.