• Hi Frank,

    a really cool thing to add would be to have would be to add seconds for async load,

    Like jquery.js -1, or jquery-ui.js -15

    Of course some other scripts, but this would be really useful for controlling tracking scripts, especially with the new GDPR Stuff..

    Let us know what you think, about this feature and if you could implement it?

    Please consider this.
    Would be great
    Thanks ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Not sure I understand; how would delaying a script’s execution for x seconds be useful for GPDR @lifeforcemoviecom?

    Thread Starter lifeforcemoviecom

    (@lifeforcemoviecom)

    I would like to run the Facebook Pixel only after 10 Seconds and maybe other tracking scripts.

    And you could load a Timer, wich forces the User to decide in like 10 or 15 seconds weather he/she will accept the Privacy Policy/Cookies/Scripts or not and run them after 15-20 seconds (the Tracking Scripts)

    Basically you have 15 Seconds to leave if you don’t want to be tracked ??
    or if you stay longer then x Seconds you accept the Privacy Policy.

    Just a good Possibility.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Basically you have 15 Seconds to leave if you don’t want to be tracked ?? or if you stay longer then x Seconds you accept the Privacy Policy.

    doubt that would *really* be OK in a GDPR sense, but it’s a … different way of offering privacy ??

    anyway, I don’t see an easy fit with async js, but what you could do is;
    * switch to defer (which will see the JS only executed after the HTML is parsed (until the DomContentLoaded event I guess)
    * than add some inline JS in the footer that waits/ loops for 10 or 15s (using setTimeOut for example)
    * the inline JS will likely block execution of the deferred JS (to be confirmed by testing in different browsers).

    hope this helps ??
    frank

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Load async .js after -XX seconds’ is closed to new replies.