[Skip to main content](#vessel-content)

#   helper, css and jss loaded even when hikashop disabled

##

- **[rfonta](/forum/user/30933-rfonta "View rfonta's Profile")**
- [![rfonta's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30933-rfonta "View rfonta's Profile") Topic Author
- [ Offline](/forum/user/30933-rfonta)

Less More

- Posts: 105
- Thank you received: 2
-
-

4 years 6 months ago [\#340708](#340708) by [rfonta](/forum/user/30933-rfonta "View rfonta's Profile")  *[helper, css and jss loaded even when hikashop disabled](/forum/25-install-update/904229-helper-css-and-jss-loaded-even-when-hikashop-disabled#340708 "-- HikaShop version -- : 4.5.0 -- Joomla version -- : 4.1.2 -- PHP version -- : 7.4  HI,  on my home page, there is no hikashop module...But i saw that several hikashop files are loaded (hikashop.js, frontend&#95;default.css,..). So i tried to understand why. I found that the administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;helper.php is running, and it then goes to lines 3264++ and then loads the scripts &quot;  $js = $configClass-&gt;get('load&#95;js', 1) || hikashop&#95;isClient('administrator'); $css = $configClass-&gt;get('load&#95;css',1) || hikashop&#95;isClient('administrator');  if($js) $doc-&gt;addScript(HIKASHOP&#95;JS.'hikashop.js?v='.HIKASHOP&#95;RESSOURCE&#95;VERSION); if($css) $doc-&gt;addStyleSheet(HIKASHOP&#95;CSS.'hikashop.css?v='.HIKASHOP&#95;RESSOURCE&#95;VERSION);  it seems weird that this happens EVEN WHEN I DISABLE ALL HIKASHOP plugins, modules....  Please help. I don't want to load any hikashop file in the front end unless it is needed (for load page speed) Kind regards")* was created by *[rfonta](/forum/user/30933-rfonta "View rfonta's Profile")*

-- HikaShop version -- : 4.5.0
-- Joomla version -- : 4.1.2
-- PHP version -- : 7.4

HI,

on my home page, there is no hikashop module...But i saw that several hikashop files are loaded (hikashop.js, frontend_default.css,..). So i tried to understand why. I found that the administrator\components\com_hikashop\helpers\helper.php is running, and it then goes to lines 3264++ and then loads the scripts "

$js = $configClass-&gt;get('load_js', 1) &#124;&#124; hikashop_isClient('administrator');
$css = $configClass-&gt;get('load_css',1) &#124;&#124; hikashop_isClient('administrator');

if($js)
$doc-&gt;addScript(HIKASHOP_JS.'hikashop.js?v='.HIKASHOP_RESSOURCE_VERSION);
if($css)
$doc-&gt;addStyleSheet(HIKASHOP_CSS.'hikashop.css?v='.HIKASHOP_RESSOURCE_VERSION);

it seems weird that this happens EVEN WHEN I DISABLE ALL HIKASHOP plugins, modules....

Please help. I don't want to load any hikashop file in the front end unless it is needed (for load page speed)
Kind regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNDIyOS1oZWxwZXItY3NzLWFuZC1qc3MtbG9hZGVkLWV2ZW4td2hlbi1oaWthc2hvcC1kaXNhYmxlZD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86324
- Thank you received: 14288
-
-

4 years 6 months ago [\#340710](#340710) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[helper, css and jss loaded even when hikashop disabled](/forum/25-install-update/904229-helper-css-and-jss-loaded-even-when-hikashop-disabled#340710 "-- HikaShop version -- : 4.5.0 -- Joomla version -- : 4.1.2 -- PHP version -- : 7.4  HI,  on my home page, there is no hikashop module...But i saw that several hikashop files are loaded (hikashop.js, frontend&#95;default.css,..). So i tried to understand why. I found that the administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;helper.php is running, and it then goes to lines 3264++ and then loads the scripts &quot;  $js = $configClass-&gt;get('load&#95;js', 1) || hikashop&#95;isClient('administrator'); $css = $configClass-&gt;get('load&#95;css',1) || hikashop&#95;isClient('administrator');  if($js) $doc-&gt;addScript(HIKASHOP&#95;JS.'hikashop.js?v='.HIKASHOP&#95;RESSOURCE&#95;VERSION); if($css) $doc-&gt;addStyleSheet(HIKASHOP&#95;CSS.'hikashop.css?v='.HIKASHOP&#95;RESSOURCE&#95;VERSION);  it seems weird that this happens EVEN WHEN I DISABLE ALL HIKASHOP plugins, modules....  Please help. I don't want to load any hikashop file in the front end unless it is needed (for load page speed) Kind regards")*

Hi,

If you have the hikashop CSS/js files loaded on a page, it means that you have at least one plugin or module or extension using HikaShop loaded on the page.

In the main helper.php file, add that code at the beginning: Code:

echo '&lt;pre&gt;'; var_dump(DEBUG_BACKTRACE_IGNORE_ARGS); echo '&lt;/pre&gt;'; exit;

That way, when the helper.php is called, it will give you the callstack so that you can easily know which file from which extension is loading HikaShop.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNDIyOS1oZWxwZXItY3NzLWFuZC1qc3MtbG9hZGVkLWV2ZW4td2hlbi1oaWthc2hvcC1kaXNhYmxlZD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.078 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
