This project provides a JavaScript library to help websites support older browsers that may not fully implement media query matching. It is a replacement for a deprecated core asset library that was previously used for this purpose.
Drupal added the matchMedia asset library to core as a polyfill for browsers that did not support matchMedia and MediaQueryList to test media queries in JavaScript.
All of the browsers listed in Drupal's browser support policy support matchMedia so this asset library is deprecated in Drupal 8.8 and will be removed in Drupal 9.
This module provides a replacement asset library for sites that still need to support older browsers.
Ask your assistant about matchMedia
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 8.x-1.1 | Stable | 8–10 | Nov 30, 2023 |