ExtJs and Sencha Touch Search Engine Optimization

I started learning ExtJS 4 and Sencha Touch 2 , and I really like it.

The main difference between Sencha and jQuery (& others) products is that instead of improving the previous HTML, it generates its own DOM based on objects created in JavaScript.

Applications designed this way are great, like intranet applications, but can you create a consumer-oriented website with Sencha? (e.g. online store )

I see that you are not writing HTML in ExtJS or Sencha Touch, so I am wondering how you can completely index a Javascript page using Search Engines such as Google. As I know, Google Bot only sees simple HTML.

Is there any SEO Sencha WebApp?

Yours faithfully,

Dan sirnau

+4
source share
4 answers

Nothing is impossible. You just need to do some work.

1. Create a standard static page using PHP or smth else. The page should look like the page of your ExtJS application. But all links must have GET parameters in the URL. PHP should also aggregate GET input parameters.

2. Add the ExtJS application to the page. In the application, you must accept the parameters of the GET account and make the correct request.

2a. If the real user opens your page: PHP generates the result, the ExtJS application starts and hides the static page and generates dynamic output.

2b. If the crawler opens your page, so JS is disabled, PHP aggregates the request according to the GET parameters and generates the output.

You can add parameters to the URL, for example # param1 & param2 & param3 in ExtJS, by clicking on the links so that real users can share their links. Just look at the router on the PHP side to understand URLs like this.

It is not possible to make SEO-friendly pages using only JavaScript.

+1
source

Using a full-blown application, it will be almost impossible for SEO. They are too dynamic. Search engines work with indexing pages. They can deal with some Ajax stuff supporting C # pages, but imagine how many pages a full-featured application will have. In each view, you have 100 options that will make up a new page, which also has 100 options. All of these virtual pages would most likely be minor variations from other pages. different sort order, different filter, moved panel, search option.

If you use ExtJs to improve your website, as jQuery is often used for, then this is a different story. You will have html for spiders to read, and then you improve how the content works through javascript (see Progressive Improvement).

0
source

In fact, in Touch 2 you can define paths and use story support. This will refer to sections of your application as actual pages in a browser with standard features such as returning to the browser, etc ... this will be your best bet when working with mobile SEO

0
source

Getting any SEO from the Sencha application is not possible since it creates everything on the go. Even if you use story support in Sencha Touch, it is also done on the fly and does not affect SEO.

For consumer-oriented sites, Sencha is not the answer. For the back-end (perhaps to manage a shopping cart), this is a different story.

0
source

Source: https://habr.com/ru/post/1394237/


All Articles