Remove browser feature checks

IntersectionObserver is provided by polyfill in core, and
CSS.escape was a proxy for ES6 support, which is also now
assumed by core.

Change-Id: I739287182b7debbd2c538b79175b3cdc2a1da5ea
This commit is contained in:
Ed Sanders 2024-03-28 12:23:04 +00:00
parent c82f8addbf
commit 0c67b4a3ed

View file

@ -5,10 +5,9 @@
* @ignore
*/
function loadRelatedArticles() {
const readMore = document.querySelector( '.read-more-container' ),
isSupported = 'IntersectionObserver' in window && CSS.escape !== undefined;
const readMore = document.querySelector( '.read-more-container' );
if ( !readMore || !isSupported ) {
if ( !readMore ) {
// The container is not in the HTML for some reason and cannot be queried.
// See T281547
return;