Keyword

Disable K2 plugin on pages where K2 is not used

  • Dragan Todorovic
  • Dragan Todorovic's Avatar Topic Author
  • Offline
  • New Member
More
14 years 2 months ago #85939 by Dragan Todorovic
Disable K2 plugin on pages where K2 is not used was created by Dragan Todorovic
Hello there , we are finishing our new framework and would like to include K2 in the demos , the issue I have is K2 system plugin is loading on all pages , 
this is resulting in a bit slower site load , is not much we all know that,  but we are presenting our joomla template framework and should show some speed.

If  you could help out it would be great. Small snippet that we can use in the template itself to disable k2 system plugin unless k2 is present. 

Now we could play with 
if(JRequest::getCmd( 'option' ) == 'com_k2')

but if K2 mods are enabled on frontpage their CSS will not load

p.s. nice touch in system discovering k2.css

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum