3 ms·
JIT loading of comments, eww... You say it "remembers my place" but does it remember my place across all of my devices? What if I want to link my friend to a c
by UnoriginalGuy 14y ago
JIT loading of comments, eww...
You say it "remembers my place" but does it remember my place across all of my devices? What if I want to link my friend to a comment? What about SEO, will my community turn up in google/bing's results?
- dangrossman 14y ago> What if I want to link my friend to a comment? The fact that there's a permalink bar on every single comment was the first thing I noticed, since it highlights on hover anywhere on the comment. http://try.discourse.org/t/this-site-is-a-sandbox-it-is-reset-every-day/57/37 http://try.discourse.org/t/this-site-is-a-sandbox-it-is-rese... If you `wget` the canonical URL of the page per the meta tags, it contains all of the comments in the HTML; everything is accessible to the search spiders.
- EvilTrout 14y ago1. If you log in across various devices you'll end up with links to the last post you read in the topic. Unlike other forum software we don't consider all posts on a "page" viewed when the page downloads, only as they are scrolled into view. 2. We use HTML5 replaceState to update the URL as you scroll. Just grab the link from the URL bar and it'll take you to where you left off. Or additionally click the "Share button" for a copy and pastable pop up. 3. Yes we render a lightweight version of the pages in a <noscript> tag for google indexing.
- andrzejkrzywda 14y ago> 3. Yes we render a lightweight version of the pages in a <noscript> tag for google indexing. Can you explain it in more detail? Are you returning different results to Google bots?
- EvilTrout 14y agoNo, we were worried that rendering different content for google violates their TOS. So what we do is render a super basic version of the page in the <noscript> section with no tools or extras. You can see it if you disable javascript in your browser. It's not much to use, but enough for google to get at the words and links. We're not sure how well it works since the project was secret until today! We're going to keep an eye on it and adjust for maximum google-fu going forward. (Shout out to Sam Saffron who implemented this!)