Answers.Body: <p>You can implement <a href="https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_coreResourceList/" rel="nofollow noreferrer">hook_civicrm_coreResourceList</a> to add your script to the list of items loaded by CiviCRM on every page.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-04-07T17:49:42.480Z
Answers.Text: Excatly the hook I was looking for. Thank you!
Answers.UserDisplayName: Jan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-04-06T23:36:06.927Z
Answers.LastActivityDate: 2024-04-06T23:36:06.927Z
Answers.UserDisplayName: Coleman
Body: <p>How do I add custom JavaScript to an extention so it appears on all pages?</p>
  
Tags: <javascript>
Title: How to add custom JavaScript globally?
ThreadText: # How to add custom JavaScript globally?
  
  (Asked by: username_0 on 2024-04-06)
  
  How do I add custom JavaScript to an extention so it appears on all pages?
  
  **Tags:** javascript
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2024-04-06. Score: 1 | Accepted answer
  
  You can implement [hook\_civicrm\_coreResourceList](https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_coreResourceList/) to add your script to the list of items loaded by CiviCRM on every page.
  
  > **Comments:**
  > **username_0**: Excatly the hook I was looking for. Thank you!  
  
  ---
  
  