2014-08-01, 07:36 PM
A MyBB version number is attached to each <script> included to overwrite the cache (?ver=1800):
While it seems appropriate for MyBB own scripts it might be a good idea to include the library's version while loading it instead of MyBB's.
This way, files like global.js would keep the ?ver=1800 suffix but 3rd-party libraries like jQuery would receive ?ver=1.11.1.
While manually updating these files (compatibility issues or switching to jQuery 2) user would just change the library version instead of making up new MyBB version number or an abstract string.
The MyBB and external libraries versions are released separately, so I say let's drop the link.
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.js?ver=1800"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1800"></script>
While it seems appropriate for MyBB own scripts it might be a good idea to include the library's version while loading it instead of MyBB's.
This way, files like global.js would keep the ?ver=1800 suffix but 3rd-party libraries like jQuery would receive ?ver=1.11.1.
While manually updating these files (compatibility issues or switching to jQuery 2) user would just change the library version instead of making up new MyBB version number or an abstract string.
The MyBB and external libraries versions are released separately, so I say let's drop the link.