Skip to content
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
Closed

Single Page Applications #16

grahovam opened this issue Jun 4, 2016 · 1 comment

Comments

@grahovam
Copy link

grahovam commented Jun 4, 2016

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

@luruke
Copy link
Member

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 as completed Jun 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants