3 ms·
I'd assume that's probably done to prevent FOUC while it's waiting for the JS to load. What do you get if you override that style?
by Ajedi32 9y ago
I'd assume that's probably done to prevent FOUC while it's waiting for the JS to load. What do you get if you override that style?
- gorhill 9y agoIf using uBlock Origin, you can try the example page with that cosmetic filter: ampbyexample.com##body:style(animation: none !important;) One thing for sure, the result is much more pleasant than having to wait 8 seconds if one does not want to un-block 3rd-party javascript from `ampproject.org`.
- lgats 9y agoI suppose webmasters could add the inline css body{animation:none !important;} On mobile so I haven't had the chance to test
- gorhill 9y agoI should have included this in my first comment: this is a requirement from AMP to include the animation[1]: AMP HTML documents must contain the following boilerplate in their head tag. [...] <style amp-boilerplate>body{-webkit-animation: ... [1] https://www.ampproject.org/docs/fundamentals/spec/amp-boilerplate https://www.ampproject.org/docs/fundamentals/spec/amp-boiler...