Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1332656

    The last website I build with Enfold is showing 1 problem in the Google Chrome browser/developper tools /console:

    jquery.min.js?ver=3.6.0:2 Uncaught TypeError: e.indexOf is not a function
    at S.fn.init.S.fn.load (jquery.min.js?ver=3.6.0:2)

    On this new website I have the same plugins installed as on other Enfold build websites, and none of my other websites is showing this error.

    When I disbale the option “jQuery Migrate” in the Enfold settings the error is gone, but I get antoher message instead:
    JQMIGRATE: Migrate is installed, version 3.3.2

    However, on all my other Enfold sites i have “jQuery Migrate” enabled in the Performance settings, without any errors.
    Any idea what could be the issue here?

    Thanks,
    Alwin

    #1332701

    Hey Alwin,

    Thank you for the inquiry.

    The option in the Enfold > Performance panel actually disables the jQuery Migrate library. There might be plugins in the site that are still using older jQuery functions, which are only available via jQuery Migrate. Please leave the option disabled.

    Best regards,
    Ismael

    #1332780

    Hello Ismael,

    I know that The option in the Enfold > Performance panel actually disables the jQuery Migrate library.

    There should be no plugin that is causing this issue, becaue the same plugins I use on my other Enfold websites without having this error.

    I run some tests in GTmetrix today and this is what I see in the Waterfall Chart under the JS tab:
    jquery.min.js?ver=3.6.0
    wp-embed.min.js?ver=f228a83ae8e214d58393d59522cbc897

    I all my other Enfold websites I see this:
    jquery.min.js
    wp-embed.min.js

    So without the query strings.

    In all my Enfold sites I use this settings in Enfold > Performance panel:
    – Remove Query Strings from Static Resources: Leave query strings
    – Disable jQuery Migrate: Enabled (so the Query Migrate library is disabled)

    So all my Enfold sites are not using the query strings, even when Leave query strings is enabled. How is that possible?
    And also, what can be the cause for my issue with my latest build website?

    #1332893

    Hi,

    Thank you for the info.

    Have you tried purging the cache? We cannot find any functions in the theme that add versioning or hash to the wp-embed script, so it might be from a plugin or a custom function.

    Please try to add this filter in the functions.php file to exclude wp-embed from the file compression, but we are not sure if this will actually change anything or if this will affect the wp-embed versioning.

    add_filter("avf_force_include_asset", function($force_include) {
       unset($force_include["js"][0]");
       return $force_include;
    }, 10, 1);
    

    Best regards,
    Ismael

    #1333125

    Prging the cache does not help.

    Is this a issue that really needs to be solved, or can I savely just leave it like it is?

    #1333319

    Hi,

    Thank you for the update.

    The console clearly states that there is an error in the script, so it has to be traced and fixed. But since the issue only occurs when jQuery Migrate library is disabled, it means that there is a deprecated function that is still in used or that exists in the scripts. You can just keep the jQuery Migrate library enabled to get rid of the error.

    Best regards,
    Ismael

    #1333365

    Thank you, I wil keep jQuery Migrate library enabled and ignore the error.

    I also discovered that this specific error is onli in Chrome, not in Firefox.

    Just to be sure; can it be that my custom css is causing this error:

    #socket { font-size: 14px !important; }

    #footer .widget p {
    font-size:15px !important;
    }

    .container_wrap {
    clear:both;
    position:relative;
    border-top-style:solid;
    border-top-width:0px;
    }

    .avia-button.avia-size-large {
    padding:14px 28px 14px;
    font-size:17px;
    min-width:120px
    }

    /*tagcloud*/
    .tagcloud br{display:none;}
    .tagcloud a{font-size: 15px !important;padding:2px 8px;margin:0 1px 1px 0;display:block;float:left;border-style: solid;border-width: 1px;text-decoration: none;}

    .tagcloud a:hover{
    text-shadow: none;
    text-decoration: underline;
    }

    .widget_tag_cloud h3{
    border:none;
    }

    /*recentcomments, recent entries*/

    .recentcomments, .widget_recent_entries li{
    padding:10px 0;
    display:block;
    font-size: 0.92em;
    line-height: 2.6em;
    }

    .recentcomments a, .widget_recent_entries li a{
    font-style: normal;
    font-family: “Verdana”, “Times New Roman”, Helvetica, Arial, sans-serif;
    }

    .recentcomments, .widget_recent_entries li{
    border-top-width:1px;
    border-top-style: solid;
    }

    .recentcomments:first-child, .widget_recent_entries li:first-child{
    border-top:none;
    }

    .entry-content-wrapper li {margin-left: 0em;padding:3px 0;}

    Thanks,
    Alwin

    #1333375

    Hi,
    Glad to hear that Ismael helped you identify the need for jQuery Migrate, I see nothing in your css that could cause this.
    Shall we close this then?

    Best regards,
    Mike

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Error in developper tools/console’ is closed to new replies.