Fuwei Chin

Results 16 comments of Fuwei Chin

I've done 103 early hints (both HTTP/1.1 and HTTP/2) in Node.js Express and Java Tomcat, see [http-preload](https://github.com/http-preload/) Also tried to implement 103 early hints with nginx/njs but failed due to...

It works. Thank you! B.T.W. It would be better to add an example about import-maps to FAQ Tutorial.

“截屏时嵌入ICC Profile”, 这功能macOS, iOS, Android早已支持,虽然Android截图程序对此有额外条件/缺陷:1.要求全屏、2.裁剪后会导致ICC丢失。 Windows的截图程序是时候跟进了。 致开发者 **如何在UWP应用程序中获得当前视图的ICC Profile** ```cs using Windows.Graphics.Display; // ... private async void btnSaveICCProfile_Click(object sender, RoutedEventArgs e) { DisplayInformation displayInfo = DisplayInformation.GetForCurrentView(); // save ICC profile...

经常要用但总是缺,我忍在不住再多说几句。目前的变通解决方法有 **方法1:** 【推荐】使用TweakPNG 先使用TweakPNG从一个内嵌有指定ICC Profile有的正常PNG中导出iCCP chunk,之后对于需要处理的PNG,插入iCCP chunk到PNG image header后即可(同时删除sRGB、gMMa等颜色相关的chunks,如果存在)。 **方法2:** 使用Exif Tools之类的命令行工具 通过命令行嵌入icc到图片中,如 ``` exiftool "-icc_profile

I created [rollup-plugin-import-maps](https://www.npmjs.com/package/rollup-plugin-import-maps), it is more like a polyfill but is used at build-time rather than at runtime.

附带说几句: 因代码`import PinyinBase, { getPinyinInstance } from "./PinyinBase";`缺少扩展名造成浏览器加载出错。为了让esm能直接在浏览器中使用,需要保证import specifier带有.js扩展名。保证specifier带.js扩展名一种方法是:使用[tsc-esm](https://www.npmjs.com/package/@digitak/tsc-esm)命令代替tsc命令来编译输出esm 因代码`import { Segment, useDefault } from "segmentit";`造依赖项耦合(segmentit.js比较大,达3.65M),考虑改成插件架构,让调用者按需动态加载segmentation实现、按需动态加载数据字典。 假如如不需要分词,且只需要用到常用2500字,加载7.4MB的脚本似乎不划算,期待有一份针对在线场景考虑的轻量版。