[Violation] Forced reflow while executing JavaScript took 30ms; [Violation] 'setTimeout' handler....

[Violation] Forced reflow while executing JavaScript took 30ms; [Violation] 'setTimeout' handler....

chessGuru64chessGuru64 Posts: 79Questions: 18Answers: 1

@allan

As requested, here is my sample project links:
https://datatables-php.000webhostapp.com/
https://datatables-ajax.000webhostapp.com/

I often get errors like these:

[Violation] 'setTimeout' handler took 143ms jquery.min.js:2
[Violation] Forced reflow while executing JavaScript took 30ms
Active resource loading counts reached a per-frame limit while the tab was in background. Network requests will be delayed until a previous loading finishes, or the tab is brought to the foreground. See https://www.chromestatus.com/feature/5527160148197376 for more details

Any simple ways to make it faster? Or perhaps my code just has something wrong.

Anyway, I decided to make a separate topic as this is a different issue now than my original post from here:
https://datatables.net/forums/discussion/54100/using-ajax-method-url-ajax-arrays-txt-as-a-server-side#latest

This is a non-urgent issue, but I do hope you get time to eventually look at it. Thanks!

Answers

  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin

    What do you need to do to trigger that error on the page? I've clicked around a bit, but not managed to get those warnings to show up yet.

    Allan

  • chessGuru64chessGuru64 Posts: 79Questions: 18Answers: 1

    I got rid of a 404 warning and now the warnings violation seems to be back on the one web-page only https://datatables-php.000webhostapp.com/

    The violation seems to sometimes not be there when I randomly check. Would which computer and current internet speed impact this? I have no clue

  • Loulou90Loulou90 Posts: 11Questions: 4Answers: 0

    Hello, this problem is a bit old but I have the same, I will create a post if necessary
    I have the same problem when I use the "ScrollX" and "ScrollY" option but especially with the "table.columns.adjust ();" (after load)

  • colincolin Posts: 15,112Questions: 1Answers: 2,583

    @Loulou90 We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.