Override JQuery in Grav

Just tried the simplest way

  • Install fresh Grav
    • No changes - jQuery loads
    • Delete {% do assets.addJs('jquery', 101) %} in line 30 of Quarks base template - jQuery is gone
  • Install fresh Grav + Admin
    • No changes - jQuery loads
    • Delete {% do assets.addJs('jquery', 101) %} in line 30 of Quarks base template - jQuery still loads

@Karmalakas, in your second test, are you talking about jQuery being loaded when Admin is displayed or when the site is displayed?

In case you are talking about Admin loading jQuery, then that would be as expected.

Frontpage site - https://test-grav.local
Didn’t even bother to create account on Admin :slight_smile:
Both All four cases tested only on frontpage

@Karmalakas,

Repeating your second test:

  • Install fresh Grav + Admin
  • No changes - jQuery loads
  • Delete {% do assets.addJs('jquery', 101) %} in line 30 of Quarks base template -

Result: jQuery is not being loaded in front-end

:man_facepalming: Once again I fail…

Forgot about the promise to search whole project… Did the search after I just couldn’t figure out what was happening (apparently I didn’t notice I was redirected to admin page when testing previously, because I was on view-source:https://test-grav.local/ and source top looks exactly the same of frontpage and account form page)… Anyway, exact same {% do assets.addJs('jquery', 101) %} buried deep in one of the templates in my theme which loads form

It’s like triple fail at once…
Sorry for time wasted. Will close the issue on GH