Load Inline JS breaks page javascript
-
When Load Inline JS setting is enabled, we get a (index):73 Uncaught ReferenceError: abb is not defined at (index):73 on the site.
The javascript that breaks in the page html code is:
<!–[if IE 9]> <script src=”https://domainname.com/wp-content/themes/jupiter/js/ie/placeholder.js” type=”text/javascript”></script> <![endif]–> <script type=”text/javascript”>var abb = {};
var php = {};
var mk_header_parallax, mk_banner_parallax, mk_page_parallax, mk_footer_parallax, mk_body_parallax;
var mk_images_dir = “https://domainname.com/wp-content/themes/jupiter/images”,
mk_theme_js_path = “https://domainname.com/wp-content/themes/jupiter/js”,
mk_theme_dir = “https://domainname.com/wp-content/themes/jupiter”,
mk_captcha_placeholder = “Enter Captcha”,
mk_captcha_invalid_txt = “Invalid. Try again.”,
mk_captcha_correct_txt = “Captcha correct.”,
mk_responsive_nav_width = 1020,
mk_check_rtl = true,
mk_grid_width = 1140,
mk_ajax_search_option = “fullscreen_search”,
mk_preloader_txt_color = “#444444”,
mk_preloader_bg_color = “#ffffff”,
mk_accent_color = “#f6dc34”,
mk_go_to_top = “true”,
mk_preloader_bar_color = “#f6dc34”,
mk_preloader_logo = “”;
var mk_header_parallax = false,
mk_banner_parallax = false,
mk_page_parallax = false,
mk_footer_parallax = false,
mk_body_parallax = false,
mk_no_more_posts = “No More Posts”;
function is_touch_device() {
return (“ontouchstart” in document.documentElement);
}</script>Line 73 is:
abb.modules.theme_header.init({id: ‘mk-header’,height: ’90’,stickyHeight: ’55’,stickyOffset: ‘header’,hasToolbar: ‘false’,});
abb.init();</script>
- The topic ‘Load Inline JS breaks page javascript’ is closed to new replies.