• Hello,
    I’ve noticed the following error in the Console when loading the homepage or any page:

    (index):1371 Uncaught ReferenceError: Main is not defined
    at (index):1371:1

    The error only appears if the option Aggregate all linked JS-files to have them loaded non-render blocking? is selected and it is related with the Simple Share Buttons Addder plugin.
    This is the code that is causing issues:

    <script type='text/javascript' id='simple-share-buttons-adder-ssba-js-after'>
    Main.boot( [] );
    </script>

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    in that case excluding the Simple Share Buttons Addder plugin’s JS should fix the problem hukubu, try adding plugins/simple-share-buttons-adder/ to the comma-separated JS optimization exclusion list maybe?

    Thread Starter Nikolay Boyukliev

    (@hukubu)

    Thanks for the quick response! I’ve tried this, but now the error in the console is:

    autoptimize_single_4…c5e26a8ef39db5.js:1 Uncaught TypeError: $ is not a function
        at Object.boot (autoptimize_single_4…26a8ef39db5.js:1:89)
        at (index):1371:6
    boot	@	autoptimize_single_4…c5e26a8ef39db5.js:1
    (anonymous)	@	(index):1371

    This is my exclusion list in case there is a problem with it:

    js/jquery/jquery.min.js,js/jquery/jquery.js,wp-includes/js/dist/,wp-includes/js/tinymce/,wp-contect/plugins/google-picasa-albums-viewer/,plugins/simple-share-buttons-adder/

    Thanks & regards,
    Nikolay

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    ah, you’re using jquery-updater, so the default jquery.min.js exclusion does not work. try adding plugins/jquery-updater/ to your exclusions as well.

    Thread Starter Nikolay Boyukliev

    (@hukubu)

    Thanks! This solved it!
    Best regards,
    Nikolay

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome, feel free to leave a review of the plugin and support here! ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Uncaught ReferenceError: Main is not defined with SSBA plugin’ is closed to new replies.