Question Disable JS for guests

Status
Not open for further replies.

galerio

Customer
Hi,
I need to disable the loading of javascript (in particular the jquery.min.js) on showthread for guests because it is double loaded (by another templete) and it is not necessary as APT/L is not showed to guests.

Can you help me?
 
Unfortunately not, as the jQuery versions may be different than the one APTL expects, which causes compatibility issues. Plus I'm not sure if the $.noConflict loader function works if $ is defined earlier even if it's the same version.
 
For sure I load the same version needed by APTL (the 1.7.2 now), but I need to load it in a precision point of html, that's why I want to disable the one loaded by APTL
 
Can you explain to me why this is important? I've never ran into a situation like this before :)
 
The same is true for APTL, and every other one of my mods :)

It requires a clean copy of jQuery of the expected version to load directly before its own JS - to change that would be a bad idea :(
 
Yeah, sure, and that's what I want to do: when user is guest, there is no need to load js for APTL.
So,
if guest: APTL doesn't load any js and I can load my js for other use.
if registered: APTL loads all and I don't load my other js (that are already configured to not be loaded if user is registered).

Maybe now it's clear what I want to do.
 
Status
Not open for further replies.

Legacy Advanced Post Thanks / Like

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
4,049
Customer rating
5.00 star(s) 1 ratings
Back
Top