Title: Javascript Errors Salient
Last modified: April 8, 2020

---

# Javascript Errors Salient

 *  [robyraju](https://wordpress.org/support/users/robyraju/)
 * (@robyraju)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/javascript-errors-salient/)
 * There is some errors showing in the Javascript console when loading the homepage.
   Due to the presence of these errors, the page is not loading properly. The active
   theme of the wordpress site is **Salient** and the page builder is WPBakery page
   builder.
    The list of the errors are as below:
 * **Uncaught TypeError: Cannot read property ‘indexOf’ of undefined
    at /wp-content/
   themes/salient/js/jquery.twentytwenty.js?ver=1.0:580
 * **Uncaught TypeError: $that.twentytwenty is not a function
    at ImagesLoaded.<
   anonymous> (/wp-content/themes/salient/js/init.js?ver=10.0.1:1587) at ImagesLoaded.
   proto.emitEvent (/wp-content/themes/salient/js/flickity.min.js?ver=2.1.2:254)
   at ImagesLoaded.complete (/wp-content/themes/salient/js/flickity.min.js?ver=2.1.2:
   4526) at ImagesLoaded.progress (/wp-content/themes/salient/js/flickity.min.js?
   ver=2.1.2:4514)
 * **Uncaught TypeError: a.indexOf is not a function
    at r.fn.init.r.fn.load ([https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js:4](https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js:4))
   at HTMLDocument.<anonymous> ([https://www.encore-can.com/wp-content/themes/salient/js/init.js?ver=10.0.1:12130](https://www.encore-can.com/wp-content/themes/salient/js/init.js?ver=10.0.1:12130))
   at j ([https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js:2](https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js:2))
   at k ([https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js:2](https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js:2))
   at HTMLDivElement.<anonymous> (/wp-content/themes/salient/js/nectar-slider.js?
   ver=10.0.1:3779) at Function.each ([https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js:2](https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js:2))
   at r.fn.init.each ([https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js:2](https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js:2))
   at initialSlideLoad (/wp-content/themes/salient/js/nectar-slider.js?ver=10.0.1:
   3661) at HTMLDocument.<anonymous> (/wp-content/themes/salient/js/nectar-slider.
   js?ver=10.0.1:3898)
 * I have searched all the files to see the source of the errors. Since i don’t 
   have much experience with the theme and the builder, i couldn’t find what causing
   the issues. When i have searched with the errors, what i can know is updating
   the theme and builder will solve the issue.
 * Please someone help me to resolve this issue asap. Thanks in advance.

The topic ‘Javascript Errors Salient’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/salient/0.0.1/screenshot.png)
 * Salient
 * [Support Threads](https://wordpress.org/support/theme/salient/)
 * [Active Topics](https://wordpress.org/support/theme/salient/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/salient/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/salient/reviews/)

## Tags

 * [errors](https://wordpress.org/support/topic-tag/errors/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [Salient](https://wordpress.org/support/topic-tag/salient/)
 * [typeerror](https://wordpress.org/support/topic-tag/typeerror/)

 * 0 replies
 * 1 participant
 * Last reply from: [robyraju](https://wordpress.org/support/users/robyraju/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/javascript-errors-salient/)
 * Status: not resolved