This is a migrated thread and some comments may be shown as answers.

MVVM and SEO

1 Answer 58 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
Jack
Top achievements
Rank 2
Iron
Jack asked on 31 Jul 2014, 06:55 AM
Let's suppose an HTML page accessed via http://www.example.com/page?id=xxxxx where id identifies the persisted object displayed in the page.
This HTML page has several kendo ui widgets bound to an observable view model via MVVM in complaince with the framework.

The requirement is to have this page properly indexed by search engines. In other words, we need this page to display the persisted object with a text browser (no javascript). What is the proper way to achieve this?

My current approach is to load values in input controls server side, with a serialized copy of the persisted object in a hidden field.

When the page with layout and data reaches the browser, the view model reads its values from the hidden field and the input controls are initialized to display as Kendo UI widgets and bound to the view model.

When the page is read by a search engine crawler, the data is indexed whether the crawler has some Javascript capabilities or not.

Is there a better approach?

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 01 Aug 2014, 01:30 PM
Hello Jack,

While the ability of search engine bots to execute Javascript remains pretty much a mystery, any form of solid Search Engine Optimization should rely on server-side rendering of the most important content. From this point of view, you will need to output some relevant HTML from the server. Since this is outside the scope of Kendo UI, it depends pretty much on your scenario and preferences.

Regards,
Dimo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
MVVM
Asked by
Jack
Top achievements
Rank 2
Iron
Answers by
Dimo
Telerik team
Share this question
or