Title: wp_enqueue_script only working on Google Chrome.
Last modified: August 21, 2016

---

# wp_enqueue_script only working on Google Chrome.

 *  [MarisMR](https://wordpress.org/support/users/marismr/)
 * (@marismr)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/wp_enqueue_script-only-working-on-google-chrome/)
 * Hi. I have no idea if this is the right place to post this, but here it goes.
   
   I have a couple of jquery functions in my functions.php file declared like this:
 * function myFunction() {
    wp_enqueue_script(‘myFunction’,get_template_directory_uri().‘/
   js/myFile.js’, array(‘jquery’)); }
 * All my jquery and javascript goes is in the ‘myFile.js’.
    Later I try to call
   the funtions by using add_action( ‘wp_enqueue_scripts’, ‘myFunction’ ); in the
   same functions.php file. The problem is, the code is not working on Firefox and
   IE, only on chrome. Anyone has any idea why?

The topic ‘wp_enqueue_script only working on Google Chrome.’ is closed to new replies.

## Tags

 * [funtions.php](https://wordpress.org/support/topic-tag/funtions-php/)
 * [wp_enqueue_script](https://wordpress.org/support/topic-tag/wp_enqueue_script/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [MarisMR](https://wordpress.org/support/users/marismr/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/wp_enqueue_script-only-working-on-google-chrome/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
