- This topic has 17 replies, 6 voices, and was last updated 2 years, 2 months ago by David.
-
AuthorPosts
-
March 25, 2020 at 5:24 am #1209400Chad
The hamburger menu on mobile seems to be dependent on jQuery. Any chance this could be removed?
This would give me the ability to block jQuery from enqueuing on pages where it isn’t needed and save payload size.
Thank you.
March 25, 2020 at 6:04 am #1209424DavidStaffCustomer SupportHi there,
the only thing GP uses jQuery for is the Sticky Navigation. Disable that and if there are any requests for jQuery it will be from a plugin or custom function.
May 22, 2020 at 1:33 am #1296321ChadGot it. Thanks.
May 22, 2020 at 4:47 am #1296503DavidStaffCustomer SupportYou’re welcome
March 27, 2021 at 11:59 am #1712359acelaOn another post, David wrote (January 9, 2021):
yes the Sticky Nav is still using jQuery. It will be replaced very soon in an upcoming update with vanilla JS.
Any hope for this soon? It seems everyone is ditching jQuery now (because they can):
Dear WordPress Plugin/Theme Devs, You Don’t Need jQuery!
Thanks!
March 27, 2021 at 5:04 pm #1712462LeoStaffCustomer SupportWe are still hoping to make this happen. The current issue is the transitional effects are tough to done with CSS only.
Thanks for your patience!
June 7, 2021 at 10:14 pm #1814241PrajwalHi Team,
Any progress on this one ?. I disabled the jQuery today and the hamburger menu on mobile doesn’t work.
June 7, 2021 at 10:37 pm #1814252ElvinStaffCustomer SupportHi Prajwal,
We’re not fully there yet.
While we’ve done this for the base GP theme scripts, GP Premium takes a lot of time as there are significantly more scripts in it.
There’s no ETA yet as to when it’s going to be released, but it’s likely after GPP 2.1.
June 7, 2021 at 11:05 pm #1814274PrajwalOk so probably another year as I see GPP is still at 2.0.2.
June 8, 2021 at 2:30 am #1814460DavidStaffCustomer SupportHi there,
we removed most of the jQuery dependency in GP 2.0.
GP now only loads jQuery for the Sticky Navigation and some Woocommerce functions ( which we won’t necessarily change as Woocommerce is jQuery dependent ).The mobile navigation has never required jQuery.
If its breaking then its’s most likely another jQuery dependent script is at fault. One broken JS can stop the browser from executing other scripts.June 9, 2021 at 3:06 am #1815859PrajwalHi David, if i disable Jquery, the menu doesn’t drop-down when viewed from Mobile.
June 9, 2021 at 4:57 am #1815968DavidStaffCustomer SupportFirst make sure the Sticky Navigation ( Sticky Mobile Header ) is disabled. This will ensure the Theme is NOT loading jQuery.
Then check to see if your site is loading jQuery. If it is then theres another plugin making that request. You will need to eliminate that plugin before you can disable jQuery.June 9, 2021 at 5:00 am #1815975PrajwalHere is what i did. I first disabled all the plugins and I noticed that Jquery was still loading. But I did not disable sticky navigation and I am going to try it now.
June 9, 2021 at 6:17 am #1816054DavidStaffCustomer SupportMake sure you don’t have the a Sticky Mobile header enabled in Customizer > Layout > Header as well.
February 2, 2022 at 2:26 am #2102385Jaime MartinezHi, everything good?
Quaestion about the jquery dependency: Is writing a Vanilla Sticky Menu somewhere on the roadmap for GP-Premium? Everything else is already re-written to no-jquery.
P.s. didn’t want to open a new ticket, because this relevant one was already there.
Kinds regards,
Jaime Martinez
-
AuthorPosts
- You must be logged in to reply to this topic.