Diigo Bookmarks 12/15/2018
著
- Everything about CSS environment variables
"When the iPhone X came out with the infamous notch, you may have heard of the new safe-area-inset values, which allowed browsers to detect the area of the screen that was covered by the notch and move content around appropriately. Recently, these values have been formalised as part of a new specification for CSS Environment Variables."
- Protecting Your Site With Feature Policy -- Smashing Magazine
"The aim of Feature Policy is for us, as web developers, to be able to state our usage of a web platform feature, explicitly to the browser. By doing so, we make an agreement about our use, or non-use of this particular feature. Based on this the browser can act to block certain features, or report back to us that a feature it did not expect to see is being used."
- Performance Calendar » All about prefetching
"The biggest drawback of prefetching is that unused prefetches waste user data; this has the greatest impact on users with slow connections. However, this can be mitigated by incorporating the user's network conditions (via the Network Information API) into the logic that determines whether a resource should be prefetched."
- For Snook
"Source order was something we had to solve at Yahoo! 9 years ago and did so without CSS-in-JS and without Sass or anything else. That's where SMACSS came from. We built components that used naming convention to isolate them and then loaded them at runtime, as needed. Work was divided amongst multiple developers over multiple products over multiple tech stacks."
- GoogleChromeLabs/quicklink: Faster subsequent page-loads by prefetching in-viewport links during idle time
"Faster subsequent page-loads by prefetching in-viewport links during idle time"
- Airline Fined for Separate Disabled-Accessible Website - Manatt, Phelps & Phillips, LLP
"The DOT Enforcement Office and SAS reached an agreement over the charges. While the airline did not admit to the violations asserted by the agency, it agreed to cease and desist from future similar violations and pay a compromise civil penalty of $200,000."
- Performance Calendar » Performance Anti-Patterns: Base64 Encoding
"Despite many blog posts describing Base64 encoding as an anti-pattern, it is still widely used on the internet today (31% of the HTTP Archive). Base64-encoded files are larger than a self contained file - often by 20-30% larger."