vendredi 12 février 2016

How to not start an EmberJs App with static assets present

Is there a way to get the minified EmberJs JS and CSS assets, but not have the EmberJs App start?

The use case is you have a login.html where you'd like the User to login, and want the static assets ahead of time, so the User doesn't have to wait for them when they get redirected to the authenticated App.

The authenticated App uses a index.html page, which also includes the original static assets, but will make some database calls once the User is authenticated.

In this use case, we'd like for the Login View to use a Django form, so login.html is a Django template.

If this is not possible, would the alternative be to use an EmberJs Login View, and force a page refresh when the User gets redirected, so as to trigger the Django database calls once in the App?




Aucun commentaire:

Enregistrer un commentaire