Could someone pls explain me what this means?


#1

hi guys
could you pls explain me this code
this code has been made with java script

$(function(){
setTimeout(function(){
$('.fly-in-text').removeClass('hidden');
},500);
})

`


#2

This is an IIFE that is equivalent of $(document).ready(function() {}) that invokes a timed delay of half a second before allowing the fly-in-text to become visible.

IIFE => Immediately Invoked Function Expression

This code does not come from the News Reader module, as I recall. There are no timed events. Where did you find this loadtime implementation?


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.