Francesco Maanta Posted November 10, 2021 Share Posted November 10, 2021 hi, im wondering if there is a way to avoid that the javascript of a module is included where the module is not used. Link to comment Share on other sites More sharing options...
endriu107 Posted November 10, 2021 Share Posted November 10, 2021 It it's on specific pages you can use in js: if prestshop.page.page_name == 'specificpage'. Link to comment Share on other sites More sharing options...
JBW Posted November 11, 2021 Share Posted November 11, 2021 In the module you can put a check in the hook where the JS is loaded. E.g. compare the controller Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now