Skip to content

How to replace deprecated browser APIs

Best practices1 min readFixes check deprecated-apis

Deprecated APIs still work today but will be removed. Chrome lists each one with its replacement.

Step by step, with screenshots: Console errors and deprecated APIs: what the report flags →

Check your own site

Runs this check and the other 186, free, in about 45 seconds.

What a passing site looks like

  • No deprecated browser features in usewarning · −1 ptseffort M

Deprecated browser features

Why it matters. Chrome warns about features it plans to remove. When that happens the feature stops working overnight, usually inside an old plugin or tracker.

How to fix it.
  1. Open the technical detail to see which feature triggered the warning, then update the plugin or library that uses it.
  2. If the code is your own, follow the replacement Chrome links to in the warning.

Filed under Best practices. Copy is generated from the same catalogue that scores every report, so what you read here is what the report says.