Poll: Do you like this guide?
You do not have permission to vote in this poll.
Yes
88.33%
106 88.33%
No
11.67%
14 11.67%
Total 120 vote(s) 100%
* You voted for this item. [Show Results]

[Tutorial] 10 Steps for Achieving the Maximum Possible Speed for Your MyBB Forum!
#27
(2011-05-12, 03:46 PM)querschlaeger Wrote: I've combined all 3 javascript files (taken from MyBB 1.6.3) into one and minimzed it with yuicompressor 2.4.6
The result is attached. Download it and save it to /jscripts/mybb.js
Then open your template headerinclude and find:
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/prototype.js?ver=1600"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1600"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1600"></script>
{$stylesheets}

Replace it with:

{$stylesheets}
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/mybb.js"></script>

This will save 2 http requests and 83 kB data transfer. Smile

Nice work, I'll put this in the main post. Credited you, too. Smile

Reply


Messages In This Thread
RE: [Tutorial] 10 Steps for Achieving the Maximum Possible Speed for Your MyBB Forum! - by Renegader - 2011-05-12, 10:00 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)