jQuery(…).lazyLoadXT is not a function
-
Hello,
I activated a3 Lazy Load plugin but it’s not working. I am getting the error in the console jQuery(…).lazyLoadXT is not a function.When I check the line number then I found my inline script and because of this, I am getting the error.
The below code is working perfectly. Any help in this why error showing on this?
<script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js” </script>
<script>
(function($) { // ready handler
callAjax_forLatestblog();// on page load call ajax to get the latest post
callAjax_forBloglist();// on page load call ajax to get the blog list
$(“#catDropdown”).change(function() {
callAjax_forLatestblog();
callAjax_forBloglist();
});
function callAjax_forLatestblog(){
$.ajax({
url: “/wp-admin/admin-ajax.php”,
type: “post”,
data: { action: “latestBlogView”, keyword: $(“#catDropdown”).val() },
success: function(data) {
$(“#latestblogs”).html(data);
}
});
}
function callAjax_forBloglist(){
$.ajax({
url: “/wp-admin/admin-ajax.php”,
type: “post”,
data: { action: “blogList”, keyword: $(“#catDropdown”).val() },
success: function(data) {
$(“#blogList”).html(data);
}
});
}
})(jQuery);</script>;
- The topic ‘jQuery(…).lazyLoadXT is not a function’ is closed to new replies.