"Uncaught Typeerror: A.Indexof Is Not a Function" Error When Opening New Foundation Project

Uncaught TypeError: a.indexOf is not a function [PRELOADER]

I searched a little and found a solution. The problem is in .load event aliase, it needs to be replaced .on

Example:

$(window).load(function(){...});

becomes:

$(window).on('load', function(){ ...});

Pre-Loader uncaught error e.indexOf - is not a function.

Instead of using $(window).load(function() use '$(function()'. because some element might not loaded when load function triggered.

$(function() {
setTimeout(function() {
$("body").addClass("hidden")
}, 100);
setTimeout(function() {
$(".preloader").addClass("end")
}, 1800);
setTimeout(function() {
$(".global-overlay").addClass("show")
}, 1900);
setTimeout(function() {
$("body").removeClass("hidden")
}, 2300);
});

codepen

Uncaught TypeError: x is not a function when Importing Factory Function

Question answered by @code in the comments.

Getting 'Uncaught TypeError: $(...).dataTable is not a function' while using datatable in custom wordpress plugin

Replacing $ with jQuery might help

jQuery('#cur_act_tbl').dataTable(


Related Topics



Leave a reply



Submit