theme file scripts.js generating console error related to stellar.js – ThemeTon – Support http://themeton.com/support/forums/topic/theme-file-scripts-js-generating-console-error-related-to-stellar-js/feed/ Sun, 28 Apr 2024 05:46:11 +0000 https://bbpress.org/?v=2.6.9 en-US http://themeton.com/support/forums/topic/theme-file-scripts-js-generating-console-error-related-to-stellar-js/#post-6232 <![CDATA[theme file scripts.js generating console error related to stellar.js]]> http://themeton.com/support/forums/topic/theme-file-scripts-js-generating-console-error-related-to-stellar-js/#post-6232 Thu, 19 Feb 2015 18:20:51 +0000 stephenblender Not sure why or how much of a problem this is, but the code below was causing an error to appear in my browser console. I have no idea why and i confirmed stellar.js was enqueued and the script had loaded. I was not witnessing any on page problems but my site is not parallax (i think).  Anyway, i wrapped the code in a function exists snippet  and console error disappeared.

flatter/assets/js/scripts.js LINE 684:

    /* init Skrollr Parallax
==================================================*/
jQuery(window).stellar({
horizontalScrolling: false,
responsive: true
});

CHANGE TO:

    /* init Skrollr Parallax
==================================================*/
if (typeof stellar !== ‘undefined’ && $.isFunction(stellar)) {
jQuery(window).stellar({
horizontalScrolling: false,
responsive: true
});
  }

 

]]>
http://themeton.com/support/forums/topic/theme-file-scripts-js-generating-console-error-related-to-stellar-js/#post-6439 <![CDATA[Reply To: theme file scripts.js generating console error related to stellar.js]]> http://themeton.com/support/forums/topic/theme-file-scripts-js-generating-console-error-related-to-stellar-js/#post-6439 Tue, 10 Mar 2015 03:49:54 +0000 Landon Wilson “Errors” reported in console are generally not an issue until something isn’t working properly – it’s safe to ignore them as there are a lot of false flags thrown.


Estimated Response Time: 24 hours or less

Need customization done? Contact me today!
Email: landon@landonw.com

]]>