Stop Sammy.js Loading On First Load
I'm currently writing an SPA based on ASP.NET MVC4, knockout and Sammy.js.
I have setup the routes so that any standard HTTPRequest will return the
page and its content. but after first load the site loads all content
dynamically with the help of Sammy.js and its routing engine.
The problem i'm having is say i'm going to yourUrl.com/article/view/1.
this will display article 1 and then do any post load client side calls
necessary that don't affect SEO. Sammy.js will then do an async call to
get the content for /article/view/1. meaning that it pretty much loads the
content twice.
What i would like to achieve is to stop sammy.js from loading the url when
it is first created and run.
Thanks in advance!
No comments:
Post a Comment