Skip to content

Commit

Permalink
Dont parse stylesheets controlled by aphrodite
Browse files Browse the repository at this point in the history
  • Loading branch information
calinoracation committed Feb 16, 2024
1 parent 398b1f6 commit 87e51e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scroll-timeline-css.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function initMutationObserver() {
*/
function handleStyleTag(el) {
// Don’t touch empty style tags.
if (el.innerHTML.trim().length === 0) {
if (el.innerHTML.trim().length === 0 || el.dataset.aphrodite === 'true') {
return;
}
// TODO: Do with one pass for better performance
Expand Down

0 comments on commit 87e51e9

Please sign in to comment.