3 ms·
"But as JavaScript matures, it makes you start to wonder why you even bother with HTML at all; you can simply dynamically generate DOM nodes in JavaScript." SE
by jshen 18y ago
"But as JavaScript matures, it makes you start to wonder why you even bother with HTML at all; you can simply dynamically generate DOM nodes in JavaScript."
SEO
- jerf 18y agoOh! So that's why Google is developing a speedy JS interpreter... they want to be able to see JS-based pages! They can load a page into a browser-with-no-graphics, and give the JS a certain amount of time to run before freezing the page and then reading off the DOM nodes instead of reading HTML. If they don't like the results, they can just use the HTML like they used to. (Reading off the DOM nodes also gives them a fresh crack at some more semantic analysis that used to be really hard, since it involved emulating a browser... did you use <span class="some_header"> instead of <h1>? They can make a better heuristic guess at that if they are "inside" a browser and thus capable of seeing that the size is twenty points higher than the surrounding text, no matter how you implemented that.) To really pull this off, you need a browser engine that enough people are using that site designers need to account for it, and it needs to be designed with the goal of running just the engine as quickly as possible on the backend, with the ability to cut it off after a certain amount of time. So... has anybody dug deeply enough into Chrome to have an opinion on the feasibility of running the browser without a UI?
- jshen 18y agoI'm not sure what your point is. Is your point that we shouldn't worry about rendering pages with JS because someday in the future google will be able to index it equally well? If so your livelyhood clearly doesn't depend on SEO. I'm not gambling mine on what is currently vaporware. Btw, people made this exact point about flash a few years ago and your pages will not rank nearly as well if you do them in flash.
- jerf 18y agoI think my point was pretty adequately captured by "So that's why Google is developing a speedy JS interpreter", although I have done you the favor of re-emphasizing the subject for you. I don't care about SEO. I think Google wants to see into those sites, and I don't think they much care about SEO either.
- jshen 18y agoI still don't see what your point is. Something like, "google doesn't care about SEO therefore site s that do should use javascript frameworks instead of static html" or something?
- jonnytran 18y agoShould the ability of search engines to index something determine whether or not you do it? I understand SEO is a practical necessity, but in the grand scheme of things, it sounds like putting the cart before the horse.
- jshen 18y ago"Should the ability of search engines to index something determine whether or not you do it?" If your goal is to make money then yes it should if organic search traffic is a big piece of your marketing puzzle. It's not the cart before the horse if your intention is to run a business on the internet. I've been a big part of a few successful businesses that depended on SEO. Without it they would not have succeeded.