Title: Continue javascript execution when errors occurs
Last modified: August 20, 2016

---

# Continue javascript execution when errors occurs

 *  [diosney](https://wordpress.org/support/users/diosney/)
 * (@diosney)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/continue-javascript-execution-when-errors-occurs/)
 * I use the WP native function wp_enqueue_script() for all my JavaScripts loading
   both in WP front and back-end so it can handle duplicated calls to the same script
   and so on.
 * One of the issues is that others programmers don’t use this function and load
   their scripts directly from their code, which causes jQuery or jQuery-UI being
   loaded twice, leading to a bunch of errors.
 * The other issue is that code not owned by my triggers an error and stops the 
   execution of the JavaScript beyond this point.
 * In short:
    1. A javascript error occurs in code not owned by me.
    2. My code don’t executes due to that f*%@ error.
    3. I want that my code bypass that error and still executes.
 * There is a way to handle these issues?

The topic ‘Continue javascript execution when errors occurs’ is closed to new replies.

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [diosney](https://wordpress.org/support/users/diosney/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/continue-javascript-execution-when-errors-occurs/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
