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

Dropping jQuery for Vanilla JS and publishing on NPM #44

Open
a-kriya opened this issue Dec 9, 2021 · 4 comments
Open

Dropping jQuery for Vanilla JS and publishing on NPM #44

a-kriya opened this issue Dec 9, 2021 · 4 comments

Comments

@a-kriya
Copy link

a-kriya commented Dec 9, 2021

I recently migrated a WordPress site to a static one and re-wrote a large chunk of modern-footnotes.js in vanilla JS. It was fairly straight-forward and is working well. I can share the source here if there is interest in migrating. Having this plugin available on NPM without jQuery would make this viable for many other projects.

@seankwilliams
Copy link
Owner

@a-kriya That would be great if you can share the file here! It would be nice to remove jQuery as a dependency so this can translate easier to platforms outside of WordPress.

@a-kriya
Copy link
Author

a-kriya commented Dec 10, 2021

GitHub does not accept a JS file as an attachment, so it's zipped: mfn.js.zip

A majority of the file was translated line-by-line, but I removed some event handlers. The source I used was from August, so it also does not have the changes from the latest accessibility improvements commit.

Check it out and let me know if I can help with anything else.

@seankwilliams
Copy link
Owner

Thank you @a-kriya !

@brentlogan
Copy link

I would also appreciate this effort -- thanks!

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

No branches or pull requests

3 participants