Module: Disable Bundled jQuery
Posted by Maurice Makaay
All files from this thread
File Name | File Size | Posted by | Date | ||
---|---|---|---|---|---|
disable_bundled_jquery-1.0.0.tar.gz | 1.5 KB | open | download | Maurice Makaay | 10/15/2010 | Read message |
disable_bundled_jquery-1.0.0.zip | 2.4 KB | open | download | Maurice Makaay | 10/15/2010 | Read message |
October 15, 2010 12:22PM |
Admin Registered: 20 years ago Posts: 8,532 |
From Phorum 5.2.16 on, we will bundle a version of jQuery with the Phorum distribution. This mod suppresses the loading of the bundled jQuery library, which can be useful in case a jQuery library is already loaded in another way for your site.
Note that there is no risk that the Phorum jQuery library will conflict with your own jQuery version. Phorum does make use of the noConflict feature of jQuery, to not let the library conflict with other libraries that are loaded for the site. The main reason for disabling the bundled library would therefore be to spare some resources.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Edited 1 time(s). Last edit at 10/15/2010 12:23PM by Maurice Makaay.
Note that there is no risk that the Phorum jQuery library will conflict with your own jQuery version. Phorum does make use of the noConflict feature of jQuery, to not let the library conflict with other libraries that are loaded for the site. The main reason for disabling the bundled library would therefore be to spare some resources.
Changelog: ---------- 2010-10-15 v1.0.0 - Initial revision
Maurice Makaay
Phorum Development Team



Edited 1 time(s). Last edit at 10/15/2010 12:23PM by Maurice Makaay.
Re: Module: Disable Bundled jQuery December 03, 2010 09:34PM |
Registered: 16 years ago Posts: 753 |
December 04, 2010 04:34AM |
Admin Registered: 20 years ago Posts: 8,532 |
Well, find out by checking what the changes are between 1.4.2 and 1.4.4 and see if there's anything in there that would break backward compatibility. My experience is that the jQuery versions are good at backward compatibility, so I don't expect any issues with that.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team



Re: Module: Disable Bundled jQuery December 04, 2010 06:46AM |
Registered: 16 years ago Posts: 753 |
December 04, 2010 12:45PM |
Admin Registered: 20 years ago Posts: 8,532 |
Then you must be really bad at searching. I won't tell you where Phorum loads the library from, since there is no reason at all to start hacking the Phorum code to change the jQuery version number. If you want to find out where and how Phorum loads the javascript code, I leave that up as an exercise to you.
You are posting in a thread that will disable the bundled jQuery. Therefore, I presumed that you wanted to load your own jQuery library. That's nothing more than adding the correct <script> code to your header.tpl.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
You are posting in a thread that will disable the bundled jQuery. Therefore, I presumed that you wanted to load your own jQuery library. That's nothing more than adding the correct <script> code to your header.tpl.
Maurice Makaay
Phorum Development Team



Sorry, only registered users may post in this forum.