Ubiquo PJAX demo

61 views
Skip to first unread message

Ramon Salvadó

unread,
Nov 30, 2011, 4:26:16 AM11/30/11
to ubiquo...@googlegroups.com
Hello,

  I've created a sample ubiquo project with added PJAX (AJAX + HTML5 PushState API) capabilities, you can give it a try:

  https://github.com/rsalvado/ubiquo-pjax

  Check the Articles and Media section, all links are pjax enabled meaning that clicking on them only replace de content div instead of doing the full page (on the browser side, on the server side the whole page is rendered and stripped using the rack-pjax gem).

  Tech used:

  1) Jquery
  2) Jquery pjax plugin
  3) rack-pjax gem

  All this could be further improved by removing the rack-pjax gem and using custom code to avoid rendering the layout for pjax calls.

  I think the speed improvement is noticeable but obviusly there is a complexity tax if we go that route.

  Give it a try and let us know what you think.

Regards
Ramon

P.D. For more infor about pjax: http://pjax.heroku.com/

--
Ramon Salvadó
rsal...@gnuine.com

gnuine
http://www.gnuine.com

Tel: +34 93 567 94 94
Fax: +34 93 567 94 95

GPG Key ID: 0x6EF9C883

Bernat Foj Capell

unread,
Dec 2, 2011, 4:28:20 AM12/2/11
to ubiquo...@googlegroups.com
Hi,

I really like it, the experience is better, and it's pretty
unobtrusive at least at this stage.

Even with rack-pjax, it could be added simply to improve UX at the
level the example shows.

Cheers
Bernat

> --
> Heu rebut aquest missatge perquè esteu subscrit al grup "ubiquo" de Grups de
> Google.
> Per publicar a aquest grup, envieu un correu electrònic a
> ubiquo...@googlegroups.com.
> Per anul·lar la subscripció a aquest grup, envieu un correu electrònic a
> ubiquo-gnuin...@googlegroups.com.
> Per obtenir més opcions, visiteu aquest grup a
> http://groups.google.com/group/ubiquo-gnuine?hl=ca.
>

--
Bernat Foj Capell
bf...@gnuine.com

gnuine
www.gnuine.com
C/ Pamplona, 96
Local 17
22@ - 08018 Barcelona

Tel: +34.93.567.94.94
Fax: +34.93.567.94.95

Reply all
Reply to author
Forward
0 new messages