https://cattowerbestcheapprice.blogspot.com/2022/07/wicked-pdf-wait-for-ajax-request-to.html
Wicked PDF - Wait For AJAX Request To Finish