XF 2.0 What is the right way to add javascript to core-compiled.js

CNK

Active member
Hello, I don't want to have too much separate .js files, so I want to add code to core-compiled.js but if I did it I get healthcheck warning.
What is the right way to do this in xenForo2 and not receive an error while checking files?
 
One additional JS file isn’t going to make a huge difference vs the hassle of modifying core files which aren’t supposed to be edited and would be overwritten by upgrades.

But they are really your only choices.
 
  • Like
Reactions: CNK
Top Bottom