If this is your first visit, check our documentation. To post, register or login.
Forums / Zen Cart Code Suggestions / V155 Admin jquery in the header

V155 Admin jquery in the header

Started by mesnitu on 2 Apr 2016, 2:57 PM · Views: 59

Results 1 to 1 of 1
2 Apr 2016, 2:57 PM
#1
mesnitu avatar

mesnitu

Totally Zenned

Join Date:
Aug 2014
Location:
Lisbon
Posts:
597
Plugin Contributions:
0

V155 Admin jquery in the header

Hi
Just notice the the jquery in the admin is loaded in the body after the <nav> ends.
This leaves out, whatever jquery code that is in the header.
In my particular case, I was /am making a plugin or ep4 featured to import bookx fields, and uses jquery.

Just yesterday I've install v155 , and I saw that jquery was already loaded. Good.
EP4 has a version checker , not sure if specifically to defined versions or just separates 1.3 from 1.5 in general.

Anyway, this would be simpler to remove ( the jquery CDN ), either by config or just a readme note to 155 users ( probably me ), to comment the line that loads jquery.

However, even so, the rest of jquery script is in the header.
In EP4 , I can insert that js bellow that v155 jquery, but it will be in the the middle of the <body>

I wonder if this is a good practice for whoever needs to have js, to throw him to the body... ahah, just remember monthy phythons:

Thwow him to the floor again, sir?

Or, v155 has the hability to place this kind of scripts in the footer ?

Thanks

“Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison