I know the best practises says "your content must be available on page load" and i did it so.
If user navigates to /questionnaire/info/id/2
, PHP serves the full html. But problem raises after this point, backbone.js matches the same route and re-requests the same page and loads it with ajax.
How can i disable backbone for current page's first load?
I found the answer. Just start history with silent: true parameter like this:
Backbone.history.start({pushState: true, silent: true});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With