Avoid serving legacy Javascript to modern browsers

未关闭
#120 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
javascript

调研方向

首先检查 dist/js/frontend.js 和链接的 GTMetrix 报告,重点关注报告中指出的 Array.prototype.includes 使用情况。确定该报告识别出的究竟是真实的 legacy-JavaScript 交付问题,还是误报。确认并解决该问题,或明确记录其不适用,即视为完成。

由索引模型根据 Issue 内容生成。

描述

help wanted
Describe the bug

My GTMetrix performance report is reporting "Avoid serving legacy Javascript to modern browsers" for /dist/js/frontend.js, specifically for Array.prototype.includes (although this might be incorrectly reported).
Would it be possible to investigate?

Steps to Reproduce

More info here: https://gtmetrix.com/avoid-serving-legacy-javascript-to-modern-browsers.html

Screenshots, screen recording, code snippet

CleanShot 2023-07-05 at 15 20 05@2x

Environment information

No response

WordPress information

No response

Code of Conduct
  • I agree to follow this project's Code of Conduct
主要语言
PHP
星标
30
派生
9
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

10up/Ad-Refresh-Control 的其他 Issue

查看 10up/Ad-Refresh-Control 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。