• Resolved mg_scr

    (@mgelly)


    Is it planned to remove the plugin’s dependency on jQuery?
    Because this dependency prevents jQuery from being removed from WordPress on the frontend when no other plugin is using it.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Marcel Pol

    (@mpol)

    Hello, I’m sorry but I have no plans to remove a jquery dependency. Personally, I very much prefer the api of jquery over standard JavaScript.

    If it is important to you, you could make the changes and I will consider using them.

    Regards, Marcel

    Thread Starter mg_scr

    (@mgelly)

    Ok thank you for the response. I’ll see if I can find the time to do so.
    From what I saw, the only script which will need a migration is “la-sentinelle-frontend.js”.
    And jQuery is mostly used for DOM parsing (which can be easily replaced by querySelector / querySelectorAll), a few ajax requests (replaced with fetch()) and on() calls (a little more tricky).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove jQuery dependency’ is closed to new replies.