• Resolved delhideveloper

    (@delhideveloper)


    Hi!

    It will be very helpful if you can trigger an event when the loader is finished.

    I needed to disable scrolling until the loader is finished.
    Disabling was fine.

    The problem was in enabling the scrolling again.

    * I enabled the scrolling on window ready but it was removed even before the loader started.
    * I enabled the scrolling on window load but it was removed some time after the loader stopped.
    * I enabled the hide on window load setting in the plugin settings but then the loader was taking too much time.

    All my problems would be solved if you trigger an event on loader finish.

    I can enable scrolling again when that event occurs.
    This will be helpful for many developers.

    Thanks in advance!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @delhideveloper,

    In the current version of the plugin, if you want run your code after the loading screen removed, I recommend you to use a piece of code similar to:

    jQuery(document).on('load', function(){
    setTimeout(function(){
    /** YOUR CODE HERE **/
    },200);
    });

    However, your suggestion is very interesting, I will trigger an event after remove the loading screen.

    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Trigger a jquery event when loader if finished’ is closed to new replies.