News for hackers. Stuff that matters.
Re:Disqus now compatible with Google AMP by vmarsy on Thursday September 22, 2016 @07:09PM (#12561095)
I think that one of the interesting features with AMP to get good performance is its free ("for now"[1]) caching system.

They also mention that "Google has provided a cache that can be used by anyone at no cost, and all AMPs will be cached by the Google AMP Cache. Other companies may build their own AMP cache as well."[2], However I wasn't able to find any documentation on how could someone build its own cache, and how to configure its AMP pages to point to your own cache instead of Google's.

[1] https://developers.google.com/amp/cache/reference/limits

[2] https://www.ampproject.org/docs/support/faqs.html

Re:Disqus now compatible with Google AMP by userbinator on Thursday September 22, 2016 @11:14PM (#12562073)
Even without AMP, Google caches pages for its search results and I frequently find the cached version both faster-loading and with less "fluff", especially the text-only option, than the actual page.
Re:Disqus now compatible with Google AMP by tangue on Friday September 23, 2016 @02:56AM (#12562812)
That was the first reason I tried to AMP. But the more I'm digging into it, the more I realize how responsive webdesign isn't the right solution ( a strange mix of Tetris and Cluedo ). AMP is a seductive solution to post mobile webdesign. In many ways it's the natural, non-bloated, evolution of Bootstrap's standardized layout.
Re:Disqus now compatible with Google AMP by freshyill on Thursday September 22, 2016 @05:19PM (#12560455)
Will Disqus still surprise site owners by suddenly inserting ads?
Re:Disqus now compatible with Google AMP by ahoy on Friday September 23, 2016 @10:07AM (#12564705)
This was seriously jarring to me. I use disqus so having low quality, taboola-looking ads just appear on my site one day was very upsetting. I thought something had gone seriously wrong.

Turns out Disqus just wanted to advertise without asking me.

Re:Disqus now compatible with Google AMP by cramforce on Thursday September 22, 2016 @07:11PM (#12561104)
With this solution they can't outside the comments because their JavaScript does not run on the page directly.
Re:Disqus now compatible with Google AMP by pstuart on Thursday September 22, 2016 @07:10PM (#12561097)
Maybe next they can figure out how to stop the spam posts that promote earning thousands while working from home.
Re:Disqus now compatible with Google AMP by threeseed on Thursday September 22, 2016 @08:36PM (#12561501)
It really is confusing to me why this problem is so hard to fix. 95% of their spam could be fixed with simple rules e.g. Blocking specific posted domains.
Re:Disqus now compatible with Google AMP by pstuart on Thursday September 22, 2016 @10:28PM (#12561919)
They just need to use that one weird trick to stop spammers!
Re:Disqus now compatible with Google AMP by angry-hacker on Friday September 23, 2016 @12:59PM (#12566093)
It's called 99% fill rate in ad industry.
Re:Disqus now compatible with Google AMP by 0xFFC on Thursday September 22, 2016 @05:49PM (#12560624)
I a not web developer, but as programmer who reads news regularly, it is quite horrifying how one company (Google) single handedly make everyone to use one technology.What about standardization?

Am I missing something? Isn't AMP for google? Now days I see every site switching to it.

Re:Disqus now compatible with Google AMP by mgraczyk on Thursday September 22, 2016 @06:00PM (#12560698)
Much of SPDY was integrated into HTTP/2. Much of Typescript has made its way into ECMAScript n+1. Large companies often need to prove the value in new web technology before the community is willing to standardize it. I wouldn't be surprised to see AMP become a standard in the not so distant future.
Re:Disqus now compatible with Google AMP by xg15 on Friday September 23, 2016 @06:11AM (#12563467)
With AMP, Google doesn't only define the standard - a core point of AMP is that AMP carefully controls which scripts run on the page.

The whole standard is designed so that you cannot insert any custom script with access to the page DOM: the closest you can do is insert cross-domain iframes, and even those have weird restrictions (like they must be outside the part of the page that the user can likely see without scrolling)

On the one hand, this trivially solves many of the "obesity" problems as the AMP team can make sure every single allowed script fits their performance requirements. On the other hand, this requires contous engagement by the AMP team, something which would have very questionable implications if AMP would become a web standard.

Re:Disqus now compatible with Google AMP by 27182818284 on Thursday September 22, 2016 @06:57PM (#12561035)
Yes and no. The AMP project is by Google, but several of the big companies are playing in this space. Eventually they don't mind if some of the practices become W3C standards and the project is somewhat open being on GitHub for people to contribute to

Google has AMP Facebook has Instant Articles Apple has the Apple News Format

So AMP is Google's version, which is really stripped down HTML to make a page load faster. (Minimize requests, don't block things, etc)

The whole project is open and on GitHub. The easiest example I know off the top of my head is to replace www with amp on Guardian pages. For example https://amp.theguardian.com/world/2016/sep/22/canada-childre... shows how an article differs slightly than its non-AMPed version

Re:Disqus now compatible with Google AMP by acangiano on Thursday September 22, 2016 @07:52PM (#12561328)
//TODO: Abstract this out so its shared with the main GA tracking
Re:Disqus now compatible with Google AMP by webrender on Thursday September 22, 2016 @08:54PM (#12561566)
AMP is just a methodology which encourages a restricted subset of HTML, CSS, and JS implementation. They've chosen to implemented because the specific subset they've chosen to support eschews particularly slow-to-load features. Yes, it's Google's methodology, and yes they are planning on pushing it by highlighting AMP sites in search results - however, it's not really doing anything special code-wise besides enforcing said methodology.
Re:Disqus now compatible with Google AMP by pjmlp on Friday September 23, 2016 @06:38AM (#12563553)
Easy just use HTML/CSS and pages will load and render fast, no need to create stuff like AMP.
Re:Disqus now compatible with Google AMP by hiou on Thursday September 22, 2016 @07:26PM (#12561190)
You may be even more surprised to hear that some people consider the web essentially Google's platform.
Re:Disqus now compatible with Google AMP by CobrastanJorji on Thursday September 22, 2016 @09:16PM (#12561651)
And in some countries, Facebook and "the Internet" are essentially synonyms.
Re:Disqus now compatible with Google AMP by alkjshdkfjasdf on Friday September 23, 2016 @02:57AM (#12562817)
Amongst my grandparents and their friends, AOL = Internet.
Re:Disqus now compatible with Google AMP by soared on Thursday September 22, 2016 @06:23PM (#12560833)
AMP is nothing. Businesses hire tons of people just to optimize their site specifically for google. AMP is a tiny part of what SEO-ers do. Everyone uses Google so they dictate a lot about how websites must function/act/exist.
Re:Disqus now compatible with Google AMP by kuschku on Friday September 23, 2016 @07:46AM (#12563830)
In other words, their monopoly or semi-monopoly means every action from them has severe effects on other markets, and them displaying any of their products before actual search results kills the competitors.

In other words, you’re saying Google has powers that only governments should have.

Re:Disqus now compatible with Google AMP by pjmlp on Friday September 23, 2016 @06:36AM (#12563549)
Just get JavaScript out of the pages and they will be loaded fast, no need for AMP contortions.
Re:Disqus now compatible with Google AMP by Mister_Snuggles on Friday September 23, 2016 @08:26AM (#12564018)
I use NoScript on one of my computers because Firefox is virtually unusable without it. The computer is not a speed demon (cheap Core i3), but there's no reason that browsing normal (I.e., just text and images) sites should bring it to its knees.
Re:Disqus now compatible with Google AMP by nullthanks on Friday September 23, 2016 @12:59PM (#12566096)
ya because no one uses javascript for anything

good solution.

Re:Disqus now compatible with Google AMP by pjmlp on Saturday September 24, 2016 @01:47AM (#12569632)
That is exactly the problem. Web 2.0 should never have happened, the browser should have stayed for iterative documents.

Luckily we do have the mobile OSes making it better.

Re:Disqus now compatible with Google AMP by kwijibob on Thursday September 22, 2016 @06:01PM (#12560707)
I hope this helps - I always get frustrated when on mobile I'm watching the disqus logo waiting for discussions to load. That can't be a good emotion to link to their brand.
Re:Disqus now compatible with Google AMP by joelthelion on Friday September 23, 2016 @05:30AM (#12563347)
There's an uBlock ruleset that blocks it. I've never seen anything worth reading in Disqus comments anyways.
Re:Disqus now compatible with Google AMP by le-mark on Friday September 23, 2016 @08:27AM (#12564026)
What's really needed is a third party JavaScript comment system you can map to your own domain, which means the Comment api would have to be cors enabled, and support custom domains i.e. So you configure the service to serve comments from blog.mysite.com. uBlock surely won't block the same domain.
Re:Disqus now compatible with Google AMP by nefitty on Friday September 23, 2016 @08:15AM (#12563972)
It really depends on the website. I used to love commenting on Motherboard until they did away with comments. I just recently discovered that AVClub has a pretty tolerable and insightful community at the moment.
Re:Disqus now compatible with Google AMP by i_feel_great on Thursday September 22, 2016 @07:16PM (#12561130)
Side scrolling keeps freezing on my mobile when viewing Google news. Reddit is easier to read, but slower to load.
Re:Disqus now compatible with Google AMP by pitaj on Thursday September 22, 2016 @06:48PM (#12560981)
What does it look like?