I have just installed Magento2 EE and noticed that the Front-End is built upon the default template and the luna template.

The page renders lots of ajax calls which get the html files of the templates. These templates have code calls like:

<% if(data.title){ %>
<h1 class="modal-title"
data-role="title"><%= data.title %></h1>
<% } %>

Is this handlebars.js? I also see the use of RequireJS, KnockoutJS and packaged versions of jQuery. What is all this JavaScript and AJAX calls going to do to benefit SEO?


At the end after all that dynamic JS and loading you get correct valid HTML code which can be crawled by Google and there is no any real difference to Magento 1 or any other CMS. Future more Google increase algorithms every day and they trying to catch all JS same as end user see it, so even if with full page cache some parts will be loaded dynamically - Google will understand that.

And yes, this is handlebars.js on templates. Here is good track to understand the situation Handlebars.js and SEO SO question point us to official Google answer about Ajax Crawling :

Times have changed. Today, as long as you're not blocking Googlebot from crawling your JavaScript or CSS files, we are generally able to render and understand your web pages like modern browsers. To reflect this improvement, we recently updated our technical Webmaster Guidelines to recommend against disallowing Googlebot from crawling your site's CSS or JS files.

Magento 2 out of box have some cool SEO features like schema.org micro-formats, proper canonical tags etc. You can read more about Magento 2 SEO features in our summary https://firebearstudio.com/blog/magento-2-seo.html

  • 1
    Thanks. I guess I kind of knew this. Take AngularJS for example. Backed by Google Engineers and the way things are heading; a JavaScript driven world. Nov 8 '15 at 11:03

In my point of view, this is only increase website speed. So minimize, because in 2017 mobile friendly site should be important.... So egnor max CSS and JavaScript..


Magento 2 use javascript rendering mostly for user specific content. And page like CMS, Product, Category rendered on server side. As result any search bot can retrieve content in static html format. So no any problem from SEO point of view.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.