B3ST / B3

B3 is a Backbone.js starter theme for WordPress.
http://beebeebee.be
MIT License
41 stars 6 forks source link

Implement a theme fallback strategy #12

Open goblindegook opened 9 years ago

goblindegook commented 9 years ago

What happens when Google tries to crawl a site that uses a B3-based theme? What if a user's browser doesn't support JavaScript?

The theme should be able to detect these situations and serve the user/crawler a server-rendered version of the page. This can be done by:

Rendering the B3 application using Phantom.js

goblindegook commented 9 years ago

This hasn't been updated in 2 years, but it's something:

http://cretz.github.io/dust-php/

pcruz7 commented 9 years ago

That is definitelly a better approach...

goblindegook commented 9 years ago

There's more to the frontend than just the templates, though.

pcruz7 commented 9 years ago

such as the custom helpers?

goblindegook commented 9 years ago

I somehow missed this, and its very good news:

http://googlewebmastercentral.blogspot.pt/2014/05/understanding-web-pages-better.html

goblindegook commented 9 years ago

Saving this for future consideration: http://php.net/manual/en/book.v8js.php