I have returned with a fix..i think
Open your HeadInclude template.
Erase
Code:
<!--Light Box By Dave At FightRice -->
<script type="text/javascript" src="clientscript/prototype.js"></script>
<script type="text/javascript" src="clientscript/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="clientscript/lightbox.js"></script>
Go to Your Postbit Template (note i've only tested on postbit legacy)
At the very top add
Code:
<!--Light Box By Dave At FightRice -->
<script type="text/javascript" src="clientscript/prototype.js"></script>
<script type="text/javascript" src="clientscript/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="clientscript/lightbox.js"></script>
Save
*Note sure if this will save resources or not, but my thinking is it will not call upon the javascript files unless needed in postbit*
Use this code instead
Code:
<if condition="$show['thumbnailattachment']">
<!--Light Box By Dave At FightRice -->
<script type="text/javascript" src="clientscript/prototype.js"></script>
<script type="text/javascript" src="clientscript/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="clientscript/lightbox.js"></script>
<!-- / Light Box -->
<else />
<!-- Nothing To See Here Folks -->
</if>
Quote:
Originally Posted by Microstats With Attachments in post
Page generated in 0.37192 seconds with 12 queries [Server Loads: 18.55 27.73 : 23.86]
|
*Please note server load is not due to this hack, its from me running a gazillion sites at one time right now

*
Quote:
Originally Posted by Microstats With-Out Attachments in post
Page generated in 0.19489 seconds with 11 queries [Server Loads: 24.73 26.15 : 23.72]
|
Hopefully that will speed things up for users
Report back