3 ms·
Interesting, I wonder do search engines crawl pages like this? You'd need to add at least a `doctype` and `title` for this to be valid HTML5 (not that it neces
by davej 12y ago
Interesting, I wonder do search engines crawl pages like this?
You'd need to add at least a `doctype` and `title` for this to be valid HTML5 (not that it necessarily matters for a search engine crawler).
Edit: Also if you added the script to the top of the doc then you could `display: none` the doc and wait for the css to load before making it `display: block`. This would overcome the FOUC effect.
- nkozyra 12y agoAs I understand it, wouldn't Google render this page while crawling? Perhaps they'd punish it for doing so, but I think Google would have no issue with the content itself. I also wonder how much FOUC you could incite by increasing the size of the markdown document.
- Xeoncross 12y agoTrue, but don't forget that the JS and CSS is cached so after the first page load - every other page is instantly ready to be rendered.
- nkozyra 12y agoThat's not true in this case - the JS and CSS are cached but the output of the JS (the rendered HTML) is dependent on the execution of the JS. If that meets any delay (ie, through parsing 1,000 nodes in a document for example), the page will look unformatted until the parsing is complete.
- Touche 12y agoFOUC is easily enough fixed with some css rules. Can even give it a snazzy transition effect after it's rendered.