Avoid serving legacy Javascript to modern browsers

Open
#120 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript

Research direction

Start by reviewing dist/js/frontend.js and the linked GTMetrix report, focusing on the reported Array.prototype.includes usage. Determine whether the report identifies a real legacy-JavaScript delivery problem or a false positive. Done means the finding is confirmed and addressed, or clearly documented as not applicable.

Written by the indexing model from the issue text.

Description

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
Dominant language
PHP
Stars
30
Forks
9
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from 10up/Ad-Refresh-Control

All issues in 10up/Ad-Refresh-Control

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.