Hi coding team,
Piwigo already loads jQuery by default in the administration. Since Piwigo 2.0 if I remember correctly. Some very popular themes like Stripped or Simple are already loading jQuery. Some popular plugins are already loading jQuery on gallery side: RV Gmaps, Image Preview, Community (only on the upload page), autosize, GThumb, RV Thumbnail Scroller...
On [Subversion] r13683, because I wanted to make it simple, I also used jQuery on picture.php for a show/hide function. As it was also used on thumbnails.tpl (Ajax load of thumbnails) and also on Elegant theme, after a short discussion with P@t I have added the load of jQuery in the default header.tpl. But the question needs to be clearly discussed: should Piwigo load jQuery by default?
My opinion is that Piwigo 2.4 should load jQuery by default. So many websites (including piwigo.org) are using jQuery now that it has become nearly unavoidable. Modern web browsers are very fast with jQuery. I don't see why we keep the constraint of avoiding jQuery in Piwigo core.
Offline
agreed
Offline
then any particular reason to load it in the header instead of footer ?
Offline
I've never understood why we didn't did this before
Yeah footer is much better than header
Offline
rvelices wrote:
then any particular reason to load it in the header instead of footer ?
No specific reason, I just did it the same way we did on administration side. I changed that in [Subversion] r13763 (I also changed in Elegant)
Offline