New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single Page Applications #16

Closed
grahovam opened this Issue Jun 4, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@grahovam

grahovam commented Jun 4, 2016

Is it possible to use this with single page js applications?

@luruke

This comment has been minimized.

Owner

luruke commented Jun 4, 2016

Hi @grahovam , what exactly do you mean with it?

If you mean to use Barba.js with a SPA frameowork (Angular, Backbone, Ember, etc.), is something I do not recommend.

Creating transitions with a SPA framework is much more easier, since all the routing is already handled by JavaScript. Refer to the documentation of your framework, I'm sure you will find way to make transition between pages.

Barba.js tries to simulate a SPA navigation using a technique called PJAX (push state ajax).

If you are using a SPA framework just for the navigation and transition between pages, probably it's better to use Barba.js, so you can benefit of a better SEO, support old browsers and keep your website working when javascript is disabled.

You can have a better understanding on how barba.js works here: http://barbajs.org/how-it-works.html

Hope it answer your question.
Cheers!

@luruke luruke closed this Jun 4, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment