Firefox PHP

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
Module: Disable Bundled jQuery
October 15, 2010 06:22PM
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.

Changelog:
----------

2010-10-15 v1.0.0

    - Initial revision


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce



Edited 1 time(s). Last edit at 10/15/2010 06:23PM by Maurice Makaay.
Attachments:
open | download - disable_bundled_jquery-1.0.0.tar.gz (1.5 KB)
open | download - disable_bundled_jquery-1.0.0.zip (2.4 KB)
Re: Module: Disable Bundled jQuery
December 04, 2010 03:34AM
What needs to be considered if I replaced the current Phorum jQuery library V1.4.2 with V1.4.4?
Re: Module: Disable Bundled jQuery
December 04, 2010 10:34AM
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
Re: Module: Disable Bundled jQuery
December 04, 2010 12:46PM
Thanks, I was wondering where Phorum includes the jQuery library in order to change the version number. I did a search but couldn't find it.
Re: Module: Disable Bundled jQuery
December 04, 2010 06:45PM
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
Sorry, only registered users may post in this forum.

Click here to login