Jump to content

add js or css to the head


Recommended Posts

I have a question on how prestashop works with adding js or css the head.

I have programmed a module. my module register hook Header, create a js file, then add it to the header. But when I want to remove the js file from the header, my module just delete the file from the server. Is it a good approach ?  or should I use removeJS?

In orther word. When calling addJS method is the change permenant or temporary? 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...