Skip to content

Remove jQuery dependency from frontend#353

Open
evoke-gd wants to merge 1 commit into
stadust:masterfrom
evoke-gd:remove-jquery-dependency
Open

Remove jQuery dependency from frontend#353
evoke-gd wants to merge 1 commit into
stadust:masterfrom
evoke-gd:remove-jquery-dependency

Conversation

@evoke-gd
Copy link
Copy Markdown

Replaces all jQuery usage with vanilla JS and CSS animations to reduce page load time:

  • Remove jQuery and jQuery UI CDN imports from PageConfiguration
  • Add anim.js with vanilla fadeIn, fadeOut, fadeTo, slideDown, slideUp helpers matching original jQuery durations and easing
  • Replace slideDown/slideUp/fadeIn/fadeOut/fadeTo with anim.js equivalents
  • Replace $.param with vanilla serializeQueryData helper
  • Replace .ready and .on('load') with DOMContentLoaded/load events
  • Replace jQuery DOM queries with native querySelector/getElementById/offsetWidth
  • Replace jQuery scroll animations with native window.scrollTo({behavior: 'smooth'})

License Acceptance

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Replaces all jQuery usage with vanilla JS and CSS animations to reduce page load time:

- Remove jQuery and jQuery UI CDN imports from PageConfiguration
- Add anim.js with vanilla fadeIn, fadeOut, fadeTo, slideDown, slideUp helpers matching original jQuery durations and easing
- Replace slideDown/slideUp/fadeIn/fadeOut/fadeTo with anim.js equivalents
- Replace $.param with vanilla serializeQueryData helper
- Replace .ready and .on('load') with DOMContentLoaded/load events
- Replace jQuery DOM queries with native querySelector/getElementById/offsetWidth
- Replace jQuery scroll animations with native window.scrollTo({behavior: 'smooth'})
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.

1 participant