Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dont parse stylesheets controlled by aphrodite #249

Merged
merged 4 commits into from
Feb 20, 2024

Conversation

calinoracation
Copy link
Contributor

Fixes #158.

src/scroll-timeline-css.js Outdated Show resolved Hide resolved
src/scroll-timeline-css.js Outdated Show resolved Hide resolved
// Don’t touch empty style tags nor tags controlled by aphrodite.
// Details at https://github.com/Khan/aphrodite/blob/master/src/inject.js,
// but any modification to the style tag will break the entire page.
if (el.innerHTML.trim().length === 0 || 'aphrodite' in item.dataset) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think s/item/el ? I don't see item defined

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

omg Tuesday is getting me, and my over-reliance on typescript. Thank you, updated!

@flackr flackr merged commit 69d5af9 into flackr:master Feb 20, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sites with even partial aphrodite usage break loading the polyfill
2 participants