• Resolved malessandro

    (@malessandro)


    Hello,

    I am struggeling with the javascript settings in the plugin. When I enable it I experience an error. A Button that appears when triggered by scrolling down to a certain css class does not appear anymore (sometimes).

    I tried to put the code from the main.js to the Async Disabled List field. The (part of the) code is:

    jQuery( ‘.features’ ).waypoint( function () {
    jQuery( ‘.chat-btn’ ).addClass( ‘fixed’ );
    }, {
    offset: ‘80%’
    } );

    Should it work this way or am I missing something? Maybe I need to delete it from the main.?

    Any help is much apprecciated!
    malessandro

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author optimalisatie

    (@optimalisatie)

    Hi malessandro,

    The async disabled list is for (parts of) javascript filenames only. To exclude Google Analytics for example, you could add google-analytics.com/analytics.js.

    If you are experiencing async javascript problems and am actively managing / modifying the theme javascript it is preferred to seek a professional solution to achieve the best performance.

    For example, if the waypoints code is the cause of the problem you could remove it from main.js add it to a separate file, e.g. main-noasync.js that is added into the async disabled list. However, perhaps the cause of the problem is related to the moment of execution of the code and encapsulating the code in main.js with jQuery(function($) { ... }); would provide a solution with the benefits of full async loading.

    I hope that this information is helpful!

    Best Regards,
    Jan Jaap

    Thread Starter malessandro

    (@malessandro)

    Thank you!

    This information was very helpful since it helped me to understand how this works

    Sorry for the late reply ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Async Disabled List’ is closed to new replies.