If this is your first visit, check our documentation. To post, register or login.
Forums / Contribution-Writing Guidelines / Contribution creators: Please don't include jQuery anymore!

Contribution creators: Please don't include jQuery anymore!

Locked

Started by swguy on 24 Jul 2017, 7:36 PM · Views: 5,220

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
24 Jul 2017, 7:36 PM
#1
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Contribution creators: Please don't include jQuery anymore!

Most people should have responsive templates, and it's really better to pull jQuery from the CDN, so we're asking mod authors to please STOP including jQuery in their contributions.

Update your readme files with a notice like this:

  • This modification ASSUMES your template includes jQuery already. If it does not, you should include it in your
    includes/templates/YOUR_TEMPLATE/common/html_header.php file as follows:
<script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="//code.jquery.com/jquery-1.12.0.min.js"%3E%3C/script%3E'));</script>

See the most recent version of Zen Cart for a more detailed example.

The plugin standards document has been updated with this recommendation; see https://www.zen-cart.com/content.php?53-rules-for-plugin-contribution-submission

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.