Answers.Body: <p>Figured it out after some troubleshooting. On the Drupal theme being used, the minified JS (including jQuery) was being put at the end of the page and not present when Civi JS is executed.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-03-08T19:56:19.773Z
Answers.Text: Neat. What was the Drupal theme?
Answers.UserDisplayName: JohnFF
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-03-09T20:49:15.693Z
Answers.Text: It was a theme based off the "Mothership" theme, which had this option.
Answers.UserDisplayName: user3827
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-03-03T07:02:19.407Z
Answers.Text: Hi, I am also having the same issue , how did you fix this please? @user3827
Answers.UserDisplayName: Tapash
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-02-06T19:23:32.810Z
Answers.LastActivityDate: 2017-02-06T19:23:32.810Z
Answers.UserDisplayName: user3827
Body: <p>After updating CiviCRM to the latest 4.6, I have been experiencing various Javascript errors. For example, on a contribution page:</p>
  
  <p><a href="https://i.sstatic.net/RZ042.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/RZ042.png" alt="enter image description here"></a></p>
  
  <p>(notice the CRM.$ function is defined after the page is loaded)</p>
  
  <p>I've tried to clear the various caches but have been unable to resolve the issue.</p>
  
  <p>Any ideas as to what the issue could be?</p>
  
Tags: <javascript>
Title: JavaScript Errors / CRM.$ is not a function
ThreadText: # JavaScript Errors / CRM.$ is not a function
  
  (Asked by: username_0 on 2017-02-06)
  
  After updating CiviCRM to the latest 4.6, I have been experiencing various Javascript errors. For example, on a contribution page:
  
  [![enter image description here](https://i.sstatic.net/RZ042.png)](https://i.sstatic.net/RZ042.png)
  
  (notice the CRM.$ function is defined after the page is loaded)
  
  I've tried to clear the various caches but have been unable to resolve the issue.
  
  Any ideas as to what the issue could be?
  
  **Tags:** javascript
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-02-06. Score: 3
  
  Figured it out after some troubleshooting. On the Drupal theme being used, the minified JS (including jQuery) was being put at the end of the page and not present when Civi JS is executed.
  
  > **Comments:**
  > **username_1**: Neat. What was the Drupal theme?  
  > **username_0**: It was a theme based off the "Mothership" theme, which had this option.  
  > **username_2**: Hi, I am also having the same issue , how did you fix this please? @username_0  
  
  ---
  
  