2 posts, 0 answers
  1. Jack
    Jack avatar
    100 posts
    Member since:
    Jan 2007

    Posted 31 Jul 2014 Link to this post

    Let's suppose an HTML page accessed via 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?
  2. Dimo
    Dimo avatar
    8406 posts

    Posted 01 Aug 2014 Link to this post

    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.

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top