X 归档 2020-09-09
I'm excited for CSS to help distribute AVIF images! Here's some demo code that follows current spec drafts:
- if in data saver / lite mode
- match first format supported
- match first resolution supported
- make that image the background
image-set() spec https://drafts.csswg.org/css-images-4/#image-set-notation https://t.co/mAcol5JOOp
- if in data saver / lite mode
- match first format supported
- match first resolution supported
- make that image the background
image-set() spec https://drafts.csswg.org/css-images-4/#image-set-notation https://t.co/mAcol5JOOp
很高兴 CSS 能帮助分发 AVIF 图像!下面是一段遵循当前规范草案的演示代码:
- 如果处于省流量 / 轻量模式
- 匹配第一个受支持的格式
- 匹配第一个受支持的分辨率
- 把那张图设为背景
image-set() 规范 https://t.co/mAcol5JOOp
- 如果处于省流量 / 轻量模式
- 匹配第一个受支持的格式
- 匹配第一个受支持的分辨率
- 把那张图设为背景
image-set() 规范 https://t.co/mAcol5JOOp
Want to run on https locally, without a bunch of fuss?
This is your ticket, so nice!
Five stars 😂 would install again... ⭐⭐⭐⭐⭐
https://www.npmjs.com/package/devcert
This is your ticket, so nice!
Five stars 😂 would install again... ⭐⭐⭐⭐⭐
https://www.npmjs.com/package/devcert
The proposed WebAssembly “NativeIO API” for low-level storage looks interesting. Can be used to implement various storage systems, incl. databases.
https://github.com/fivedots/nativeio-explainer
https://github.com/fivedots/nativeio-explainer
提议中的用于底层存储的 WebAssembly “NativeIO API” 看起来很有意思。可以用来实现各种存储系统,包括数据库。
https://github.com/fivedots/nativeio-explainer
https://github.com/fivedots/nativeio-explainer
How WebAssembly changes software distribution https://desiatov.com/why-webassembly - a fantastic blog post that explains why WebAssembly came into existence.
WebAssembly 如何改变软件的分发方式 https://desiatov.com/why-webassembly - 一篇精彩博文,解释了 WebAssembly 为什么会诞生。




