Legacy Solution to stop .js files loading on pages/forums that don't need them

Status
Not open for further replies.

tavenger5

Customer
I realize there is probably a more elegant way to do this, but loading 5 extra files on pages that do not need them is a little much since I only have thread ratings enabled in two forums.

I simply added this conditional to dbtech_trating_header:

Code:
<vb:if condition="in_array($GLOBALS['forumid'], array(X,Y)) AND $show['threadinfo']">

Replace X & Y with your forum ID's that you use thread ratings in. The threadinfo bit makes sure you're on a thread page since you don't need the files to load on any pages but forum thread pages.
 
Upvote 0
This suggestion has been closed. Votes are no longer accepted.
I'll flag this as Under Consideration so that we can figure out a programmatic way of doing this instead of needing manual template edits :)
 
Status
Not open for further replies.
Back
Top