Skip to content

Commit

Permalink
Remove supportDocumentStyle function
Browse files Browse the repository at this point in the history
  • Loading branch information
TomaszDziezykNetcentric committed Oct 28, 2024
1 parent 42fa669 commit 54dc42a
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,18 +155,6 @@ function setMainPosition(main) {
}
}

function supportDocumentStyle() {
const styleMetadata = document.querySelector('meta[name="style"');

if (!styleMetadata) {
return;
}

const styles = styleMetadata.getAttribute('content').split(',').map((el) => el.trim());

document.body.classList.add(...styles);
}

/**
* Loads everything needed to get to LCP.
* @param {Element} doc The container element
Expand All @@ -178,7 +166,6 @@ async function loadEager(doc) {
if (main) {
decorateMain(main);
setMainPosition(main);
supportDocumentStyle();
document.body.classList.add('appear');
await loadSection(main.querySelector('.section'), waitForFirstImage);
}
Expand Down

0 comments on commit 54dc42a

Please sign in to comment.