前端黑魔法 —— 如何让自己的函数变成原生函数 - EtherDream(link is external) EtherDream's Blog 1 year 7 months ago 如何让自己的 JS 函数变成原生函数 EtherDream
前端黑魔法 —— 隐藏网络请求的调用栈 - EtherDream(link is external) EtherDream's Blog 1 year 7 months ago 使用 JS 原生回调触发网络请求,可隐藏调用栈 EtherDream
HTTP 网关 GZIP 页面零开销注入 JS - EtherDream(link is external) EtherDream's Blog 1 year 9 months ago 不解压 gzip 流量的情况下往 html 中注入 js 代码 EtherDream
浏览器窗口尺寸相关的 API 整理图 - EtherDream(link is external) EtherDream's Blog 2 years 7 months ago 浏览器中和窗口尺寸相关的 API 整理 EtherDream
如何让 JS 代码不可断点 - EtherDream(link is external) EtherDream's Blog 2 years 7 months ago 通过内置回调执行原生函数,调试器是无法断点的 EtherDream
JS 字符串转 GBK 编码超精简实现 - EtherDream(link is external) EtherDream's Blog 2 years 7 months ago JS 字符串转 GBK 编码超精简实现,几十行代码,压缩后几百字节。 EtherDream
前端性能优化 —— 使用 BMP 图片代替 canvas.toDataURL - EtherDream(link is external) EtherDream's Blog 3 years ago canvas 导出的图片如果只在本地使用,无需使用 toDataURL 方法,直接在原始数据前加上 BMP 文件头即可使用。 EtherDream
免费 CDN 玩法 —— 文件一键上传到 NPM - EtherDream(link is external) EtherDream's Blog 3 years 5 months ago 使用文件 Hash 值作为 NPM 包版本号,无需维护每个文件的版本状态 EtherDream
函数式编程 —— 将 JS 方法函数化 - EtherDream(link is external) EtherDream's Blog 3 years 5 months ago 使用函数的风格调用 JS 方法。如何做到简单且无副作用。 EtherDream
免费 CDN 玩法 —— 将整个网站打包成一个图片文件 - EtherDream(link is external) EtherDream's Blog 3 years 6 months ago 将整个网站打包成一张图片,运行时通过 Service Worker 解码,从而可使用图床相册作为免费 CDN。 EtherDream
代码缩进爆炸攻击 - EtherDream(link is external) EtherDream's Blog 3 years 7 months ago 代码嵌套几百个 if(...)if(...)if(...)if(...)if(...) 会怎样? EtherDream
使用 Service Worker 缓解网站 DDOS 攻击 - EtherDream(link is external) EtherDream's Blog 3 years 7 months ago 利用 Service Worker 离线化特性,即使服务器被打垮,浏览器也能通过备用站点加载并更新 EtherDream
如何热更新长缓存的 HTTP 资源 - EtherDream(link is external) EtherDream's Blog 3 years 8 months ago 如何通过 JS 热更新 HTTP 缓存 EtherDream
网站图片无缝兼容 WebP/AVIF - EtherDream(link is external) EtherDream's Blog 3 years 8 months ago 根据浏览器版本,图片自动返回 AVIF、WebP 或传统格式 EtherDream
JS 端口敲门探索 - EtherDream(link is external) EtherDream's Blog 3 years 8 months ago 基于网页实现的各种敲门方案 EtherDream
使用 iptables 拦截端口扫描 - EtherDream(link is external) EtherDream's Blog 3 years 8 months ago 使用 iptables 拦截端口扫描 EtherDream
收集近几年的 Web 前端黑魔法 - EtherDream(link is external) EtherDream's Blog 3 years 8 months ago 整理了一些前端黑魔法 EtherDream
JS 函数式编程案例 - EtherDream(link is external) EtherDream's Blog 3 years 8 months ago JS 函数式编程案例 EtherDream
JS 调用一个空函数有可能报错吗 - EtherDream(link is external) EtherDream's Blog 3 years 8 months ago JS 调用一个空函数有可能报错吗 EtherDream
低成本打造一个带宽无限的网站 —— No.5 免费空间的挖掘 - EtherDream(link is external) EtherDream's Blog 3 years 8 months ago 5 EtherDream