Remove K2 unused file

Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Thu May 04, 2017 5:52 pm
Reply with quote
Report this post
Hi, does anyone know how I can stop K2 from loading this JS file: /media/k2/assets/js/k2.frontend.js
I don't use front end editing, and this option is switched off in K2 so not sure why it is there.
User avatar
Fresh Boarder

teitbite
Mon May 08, 2017 4:36 pm
Reply with quote
Report this post
Hi

I see no option to disable it in configuration. The only file it's mentioned in is in /plugins/system/k2/k2.php line 53:

Code: Select all
$document->addScript(JURI::root(true).'/media/k2/assets/js/k2.frontend.js?v2.7.1&sitepath='.JURI::root(true).'/');


please better ask K2 support how to block this file without changing core file's code.
User avatar
Moderator


cron