-
AuthorPosts
-
December 13, 2021 at 8:54 pm #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.2However, 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,
AlwinDecember 14, 2021 at 5:29 am #1332701Hey 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,
IsmaelDecember 14, 2021 at 2:45 pm #1332780Hello 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=f228a83ae8e214d58393d59522cbc897I all my other Enfold websites I see this:
jquery.min.js
wp-embed.min.jsSo 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?December 15, 2021 at 8:42 am #1332893Hi,
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,
IsmaelDecember 16, 2021 at 1:40 pm #1333125Prging 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?
December 18, 2021 at 4:41 am #1333319Hi,
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,
IsmaelDecember 18, 2021 at 2:32 pm #1333365Thank 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,
AlwinDecember 18, 2021 at 4:39 pm #1333375 -
AuthorPosts
- The topic ‘Error in developper tools/console’ is closed to new replies.