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

#   js and css hikashop loaded on all pages

##

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

Less More

- Posts: 202
- Thank you received: 3
-
- [](https://www.pulsar-informatique.com/)
-

12 years 10 months ago [\#137481](#137481) by [pulsarinformatique](/forum/user/4583-pulsarinformatique "View pulsarinformatique's Profile")  *[js and css hikashop loaded on all pages](/forum/31-development/864510-js-and-css-hikashop-loaded-on-all-pages#137481 "-- HikaShop version -- : HikaShop Business 2.2.3 -- Joomla version -- : 2.5.14 -- PHP version -- : 5.4.3  Hi,  I saw that hikashop css and js were loaded on all pages of the site, wich is really bad, because I use it only certain pages, and I don't want my performances be slower because of scripts and css needed on other pages. There's no reason these scripts are loaded on all pages. So I tried to clean that, but the problem is these scripts are called in the file: administrator/components/com&#95;hikashophelperes/helper.php line 2583 and I cant' succeed in restricting the load of the files to hikashop pages.  Would you know how to do that? I have already many scripts on my all pages, I really need to get rid of what is uselesss.  in advance thanks for your answer  Raphaelle")* was created by *[pulsarinformatique](/forum/user/4583-pulsarinformatique "View pulsarinformatique's Profile")*

-- HikaShop version -- : HikaShop Business 2.2.3
-- Joomla version -- : 2.5.14
-- PHP version -- : 5.4.3

Hi,

I saw that hikashop css and js were loaded on all pages of the site, wich is really bad, because I use it only certain pages, and I don't want my performances be slower because of scripts and css needed on other pages. There's no reason these scripts are loaded on all pages.
So I tried to clean that, but the problem is these scripts are called in the file:
administrator/components/com_hikashophelperes/helper.php line 2583
and I cant' succeed in restricting the load of the files to hikashop pages.

Would you know how to do that? I have already many scripts on my all pages, I really need to get rid of what is uselesss.

in advance thanks for your answer

Raphaelle

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2NDUxMC1qcy1hbmQtY3NzLWhpa2FzaG9wLWxvYWRlZC1vbi1hbGwtcGFnZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

12 years 10 months ago [\#137501](#137501) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[js and css hikashop loaded on all pages](/forum/31-development/864510-js-and-css-hikashop-loaded-on-all-pages#137501 "-- HikaShop version -- : HikaShop Business 2.2.3 -- Joomla version -- : 2.5.14 -- PHP version -- : 5.4.3  Hi,  I saw that hikashop css and js were loaded on all pages of the site, wich is really bad, because I use it only certain pages, and I don't want my performances be slower because of scripts and css needed on other pages. There's no reason these scripts are loaded on all pages. So I tried to clean that, but the problem is these scripts are called in the file: administrator/components/com&#95;hikashophelperes/helper.php line 2583 and I cant' succeed in restricting the load of the files to hikashop pages.  Would you know how to do that? I have already many scripts on my all pages, I really need to get rid of what is uselesss.  in advance thanks for your answer  Raphaelle")*

Hi,

If the cart is display on all pages, the CSS and the JS would be useful.
If you have a HikaShop system plugin which load HikaShop on every pages, it could insert the JS and CSS too.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2NDUxMC1qcy1hbmQtY3NzLWhpa2FzaG9wLWxvYWRlZC1vbi1hbGwtcGFnZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 202
- Thank you received: 3
-
- [](https://www.pulsar-informatique.com/)
-

12 years 10 months ago [\#137839](#137839) by [pulsarinformatique](/forum/user/4583-pulsarinformatique "View pulsarinformatique's Profile")  Replied by *[pulsarinformatique](/forum/user/4583-pulsarinformatique "View pulsarinformatique's Profile")* on topic *[js and css hikashop loaded on all pages](/forum/31-development/864510-js-and-css-hikashop-loaded-on-all-pages#137839 "-- HikaShop version -- : HikaShop Business 2.2.3 -- Joomla version -- : 2.5.14 -- PHP version -- : 5.4.3  Hi,  I saw that hikashop css and js were loaded on all pages of the site, wich is really bad, because I use it only certain pages, and I don't want my performances be slower because of scripts and css needed on other pages. There's no reason these scripts are loaded on all pages. So I tried to clean that, but the problem is these scripts are called in the file: administrator/components/com&#95;hikashophelperes/helper.php line 2583 and I cant' succeed in restricting the load of the files to hikashop pages.  Would you know how to do that? I have already many scripts on my all pages, I really need to get rid of what is uselesss.  in advance thanks for your answer  Raphaelle")*

thanks for this answer but as you said it's useful only in these cases:

> If the cart is display on all pages, If you have a HikaShop system plugin which load HikaShop on every pages

for all other cases it's not only useless, it's nocive for the website's speed.

In my case for example Hikashop is used only on Hikashop pages, wich represents 20% of my site. So I can't afford to make heavier 80% pages of my site uselessly. I really need to know please how I can remove these scripts from my other pages please?
or saying other: how can I load these scripts only when they're needed?

in advance thanks for your answer

Raphaelle

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2NDUxMC1qcy1hbmQtY3NzLWhpa2FzaG9wLWxvYWRlZC1vbi1hbGwtcGFnZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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: 86541
- Thank you received: 14304
-
-

12 years 10 months ago [\#137897](#137897) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[js and css hikashop loaded on all pages](/forum/31-development/864510-js-and-css-hikashop-loaded-on-all-pages#137897 "-- HikaShop version -- : HikaShop Business 2.2.3 -- Joomla version -- : 2.5.14 -- PHP version -- : 5.4.3  Hi,  I saw that hikashop css and js were loaded on all pages of the site, wich is really bad, because I use it only certain pages, and I don't want my performances be slower because of scripts and css needed on other pages. There's no reason these scripts are loaded on all pages. So I tried to clean that, but the problem is these scripts are called in the file: administrator/components/com&#95;hikashophelperes/helper.php line 2583 and I cant' succeed in restricting the load of the files to hikashop pages.  Would you know how to do that? I have already many scripts on my all pages, I really need to get rid of what is uselesss.  in advance thanks for your answer  Raphaelle")*

The HikaShop library is loaded by one or several Hikashop system plugins on your other pages. Disable the ones you don't use and which load the HikaShop library on the other pages and you won't get the HikaShop js/css files there.
To find out which ones you can enable, disable all of the enabled system plugins, and reenable them one by one and check the frontend page each time you enable a HikaShop system plugin.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2NDUxMC1qcy1hbmQtY3NzLWhpa2FzaG9wLWxvYWRlZC1vbi1hbGwtcGFnZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 202
- Thank you received: 3
-
- [](https://www.pulsar-informatique.com/)
-

12 years 10 months ago [\#137990](#137990) by [pulsarinformatique](/forum/user/4583-pulsarinformatique "View pulsarinformatique's Profile")  Replied by *[pulsarinformatique](/forum/user/4583-pulsarinformatique "View pulsarinformatique's Profile")* on topic *[js and css hikashop loaded on all pages](/forum/31-development/864510-js-and-css-hikashop-loaded-on-all-pages#137990 "-- HikaShop version -- : HikaShop Business 2.2.3 -- Joomla version -- : 2.5.14 -- PHP version -- : 5.4.3  Hi,  I saw that hikashop css and js were loaded on all pages of the site, wich is really bad, because I use it only certain pages, and I don't want my performances be slower because of scripts and css needed on other pages. There's no reason these scripts are loaded on all pages. So I tried to clean that, but the problem is these scripts are called in the file: administrator/components/com&#95;hikashophelperes/helper.php line 2583 and I cant' succeed in restricting the load of the files to hikashop pages.  Would you know how to do that? I have already many scripts on my all pages, I really need to get rid of what is uselesss.  in advance thanks for your answer  Raphaelle")*

Thanks for your answer but I made several tests and here is what I get: the hikashop js and css are loaded when my menu module is published !
when I deactivate the hikashop menu items from this menu, my js and css aren't loaded any more... but I can't access anymore to my hikashop pages! :S

It really looks like a bug, please could you fix it?

in advance thanks for your answer!

Raphaelle

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2NDUxMC1qcy1hbmQtY3NzLWhpa2FzaG9wLWxvYWRlZC1vbi1hbGwtcGFnZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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: 86541
- Thank you received: 14304
-
-

12 years 10 months ago [\#138002](#138002) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[js and css hikashop loaded on all pages](/forum/31-development/864510-js-and-css-hikashop-loaded-on-all-pages#138002 "-- HikaShop version -- : HikaShop Business 2.2.3 -- Joomla version -- : 2.5.14 -- PHP version -- : 5.4.3  Hi,  I saw that hikashop css and js were loaded on all pages of the site, wich is really bad, because I use it only certain pages, and I don't want my performances be slower because of scripts and css needed on other pages. There's no reason these scripts are loaded on all pages. So I tried to clean that, but the problem is these scripts are called in the file: administrator/components/com&#95;hikashophelperes/helper.php line 2583 and I cant' succeed in restricting the load of the files to hikashop pages.  Would you know how to do that? I have already many scripts on my all pages, I really need to get rid of what is uselesss.  in advance thanks for your answer  Raphaelle")*

It's not a bug. It's because the routing system needs the HikaShop library to SEF the URLs of HikaShop. If you turn off the SEF and keep the HikaShop menu items enabled, you should not have the js/css files loaded either.

If you don't want the js/CSS files and still want the SEF turned on on your website, renaming the file components/com_hikashop/router.php so that the HikaShop SEF URLs are not optimized anymore by HikaShop and you will see that you don't get the js/CSS files anymore in such cases.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2NDUxMC1qcy1hbmQtY3NzLWhpa2FzaG9wLWxvYWRlZC1vbi1hbGwtcGFnZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 202
- Thank you received: 3
-
- [](https://www.pulsar-informatique.com/)
-

12 years 10 months ago [\#139083](#139083) by [pulsarinformatique](/forum/user/4583-pulsarinformatique "View pulsarinformatique's Profile")  Replied by *[pulsarinformatique](/forum/user/4583-pulsarinformatique "View pulsarinformatique's Profile")* on topic *[js and css hikashop loaded on all pages](/forum/31-development/864510-js-and-css-hikashop-loaded-on-all-pages#139083 "-- HikaShop version -- : HikaShop Business 2.2.3 -- Joomla version -- : 2.5.14 -- PHP version -- : 5.4.3  Hi,  I saw that hikashop css and js were loaded on all pages of the site, wich is really bad, because I use it only certain pages, and I don't want my performances be slower because of scripts and css needed on other pages. There's no reason these scripts are loaded on all pages. So I tried to clean that, but the problem is these scripts are called in the file: administrator/components/com&#95;hikashophelperes/helper.php line 2583 and I cant' succeed in restricting the load of the files to hikashop pages.  Would you know how to do that? I have already many scripts on my all pages, I really need to get rid of what is uselesss.  in advance thanks for your answer  Raphaelle")*

thanks for your answer but if I rename the router file, I don't have any more sef on all my hikashop pages... :dry:
can't you unlink the call to js and css to the sef router please?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2NDUxMC1qcy1hbmQtY3NzLWhpa2FzaG9wLWxvYWRlZC1vbi1hbGwtcGFnZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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: 86541
- Thank you received: 14304
-
-

12 years 10 months ago -  12 years 10 months ago [\#139119](#139119) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[js and css hikashop loaded on all pages](/forum/31-development/864510-js-and-css-hikashop-loaded-on-all-pages#139119 "-- HikaShop version -- : HikaShop Business 2.2.3 -- Joomla version -- : 2.5.14 -- PHP version -- : 5.4.3  Hi,  I saw that hikashop css and js were loaded on all pages of the site, wich is really bad, because I use it only certain pages, and I don't want my performances be slower because of scripts and css needed on other pages. There's no reason these scripts are loaded on all pages. So I tried to clean that, but the problem is these scripts are called in the file: administrator/components/com&#95;hikashophelperes/helper.php line 2583 and I cant' succeed in restricting the load of the files to hikashop pages.  Would you know how to do that? I have already many scripts on my all pages, I really need to get rid of what is uselesss.  in advance thanks for your answer  Raphaelle")*

No. Because the router needs to load the params of the configuration to know how to handle the SEF and for that it needs to load the main helper of HikaShop, and in that same file the js/CSS is loaded, and that file is loaded only once, which means that if we don't do it directly, it will be missing on all the pages as the helper file won't be reloaded and thus the JS/CSS not added. And loading the file several time is out as well as it would crash.

The only way is for you to remove all the piece of code there which uses parameters of the configuration and it will then work without taking them into account, and without loading the helper of Hikashop. Thr drawback is that the URLs will probably not be like you want and that it's not that easy to change the router for that, and we definitely can't do that by default in HikaShop.

Last edit: 12 years 10 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2NDUxMC1qcy1hbmQtY3NzLWhpa2FzaG9wLWxvYWRlZC1vbi1hbGwtcGFnZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 78
- Thank you received: 5
-
-

12 years 7 months ago [\#149176](#149176) by [brentwilliams2](/forum/user/1200-brentwilliams2 "View brentwilliams2's Profile")  Replied by *[brentwilliams2](/forum/user/1200-brentwilliams2 "View brentwilliams2's Profile")* on topic *[js and css hikashop loaded on all pages](/forum/31-development/864510-js-and-css-hikashop-loaded-on-all-pages#149176 "-- HikaShop version -- : HikaShop Business 2.2.3 -- Joomla version -- : 2.5.14 -- PHP version -- : 5.4.3  Hi,  I saw that hikashop css and js were loaded on all pages of the site, wich is really bad, because I use it only certain pages, and I don't want my performances be slower because of scripts and css needed on other pages. There's no reason these scripts are loaded on all pages. So I tried to clean that, but the problem is these scripts are called in the file: administrator/components/com&#95;hikashophelperes/helper.php line 2583 and I cant' succeed in restricting the load of the files to hikashop pages.  Would you know how to do that? I have already many scripts on my all pages, I really need to get rid of what is uselesss.  in advance thanks for your answer  Raphaelle")*

I have to say that this is really not ideal. I'm in the same situation as OP, and to have my entire site slowed down because Hikashop has to load js and css on unrelated pages is extremely frustrating. I can't imagine there is not a solution to this.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2NDUxMC1qcy1hbmQtY3NzLWhpa2FzaG9wLWxvYWRlZC1vbi1hbGwtcGFnZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

12 years 7 months ago [\#149248](#149248) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[js and css hikashop loaded on all pages](/forum/31-development/864510-js-and-css-hikashop-loaded-on-all-pages#149248 "-- HikaShop version -- : HikaShop Business 2.2.3 -- Joomla version -- : 2.5.14 -- PHP version -- : 5.4.3  Hi,  I saw that hikashop css and js were loaded on all pages of the site, wich is really bad, because I use it only certain pages, and I don't want my performances be slower because of scripts and css needed on other pages. There's no reason these scripts are loaded on all pages. So I tried to clean that, but the problem is these scripts are called in the file: administrator/components/com&#95;hikashophelperes/helper.php line 2583 and I cant' succeed in restricting the load of the files to hikashop pages.  Would you know how to do that? I have already many scripts on my all pages, I really need to get rid of what is uselesss.  in advance thanks for your answer  Raphaelle")*

Hi,

If you display an HikaShop module like the HikaShop cart, a product listing (feature products), the currency switcher or any other Hikashop module, these module could require the HikaShop JS and HikaShop CSS files.

If no HikaShop module and no HikaShop system plugin are published, there is no reason for HikaShop to be loaded and to include is JS &amp; CSS files because HikaShop helper won't be loaded.

More than that, the inclusion of a JS and CSS file will not slow down your server.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2NDUxMC1qcy1hbmQtY3NzLWhpa2FzaG9wLWxvYWRlZC1vbi1hbGwtcGFnZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 78
- Thank you received: 5
-
-

12 years 7 months ago [\#149267](#149267) by [brentwilliams2](/forum/user/1200-brentwilliams2 "View brentwilliams2's Profile")  Replied by *[brentwilliams2](/forum/user/1200-brentwilliams2 "View brentwilliams2's Profile")* on topic *[js and css hikashop loaded on all pages](/forum/31-development/864510-js-and-css-hikashop-loaded-on-all-pages#149267 "-- HikaShop version -- : HikaShop Business 2.2.3 -- Joomla version -- : 2.5.14 -- PHP version -- : 5.4.3  Hi,  I saw that hikashop css and js were loaded on all pages of the site, wich is really bad, because I use it only certain pages, and I don't want my performances be slower because of scripts and css needed on other pages. There's no reason these scripts are loaded on all pages. So I tried to clean that, but the problem is these scripts are called in the file: administrator/components/com&#95;hikashophelperes/helper.php line 2583 and I cant' succeed in restricting the load of the files to hikashop pages.  Would you know how to do that? I have already many scripts on my all pages, I really need to get rid of what is uselesss.  in advance thanks for your answer  Raphaelle")*

Not publishing a module is no problem, as I can limit those to certain sections of the site. But I can't target plugins, so they either are on or off, so I'm not sure how that helps.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2NDUxMC1qcy1hbmQtY3NzLWhpa2FzaG9wLWxvYWRlZC1vbi1hbGwtcGFnZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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: 86541
- Thank you received: 14304
-
-

12 years 7 months ago [\#149325](#149325) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[js and css hikashop loaded on all pages](/forum/31-development/864510-js-and-css-hikashop-loaded-on-all-pages#149325 "-- HikaShop version -- : HikaShop Business 2.2.3 -- Joomla version -- : 2.5.14 -- PHP version -- : 5.4.3  Hi,  I saw that hikashop css and js were loaded on all pages of the site, wich is really bad, because I use it only certain pages, and I don't want my performances be slower because of scripts and css needed on other pages. There's no reason these scripts are loaded on all pages. So I tried to clean that, but the problem is these scripts are called in the file: administrator/components/com&#95;hikashophelperes/helper.php line 2583 and I cant' succeed in restricting the load of the files to hikashop pages.  Would you know how to do that? I have already many scripts on my all pages, I really need to get rid of what is uselesss.  in advance thanks for your answer  Raphaelle")*

The only plugins of HikaShop that are loaded on all the pages are the system plugins. And not all of them always load the HikaShop library.
For example, the Affiliate plugin does because it needs to load the parameters of the configuration in order to know if it needs to run or not. But if you don't need an affiliate system on your website, you could disable the plugin since it is to one use to you.
The massaction plugin can also be disabled if you don't use any mass action.
etc
Note that the HikaShop user synchronization plugin should be kept published but it won't load the library unless he has to do some work (like after a user is created or modified).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2NDUxMC1qcy1hbmQtY3NzLWhpa2FzaG9wLWxvYWRlZC1vbi1hbGwtcGFnZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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.073 seconds

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