3. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
Browser Request
Index.html
Server
Traditional Request / Response for ALL rendered content and assets
Client
13. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
Choosing frameworks that provides you with
routing and navigation built-in
50. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
Change your URL from this:
www.app.com/index.html#my-hash-value
To this new one:
www.app.com/index.html#!my-hash-value
51. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
Instead this URL:
www.app.com/index.html#!my-hash-value
Crawler will go to tis one:
www.app.com/index.html?_escaped_fragment_=my-hash-value
http://crawljax.com – Java
https://github.com/gregorypratt/Ajax-Crawling - ASP.NET MVC
64. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
You can bind custom event to the app.
Inside events is EventContext, same as in routes
65. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
You can trigger events on the app context and
EventContext.
66. Israel JavaScript Conference | 03 – 6325707 | info@e4d.co.il | www.js-il.com |
You can pass custom data object as third parameter