I generate about 150 invoices in a php foreach loop (with dompdf class). This takes about 40s for the page/rendering to finish so I'm wondering if I can I place a bootstrap progress-bar before the foreach loop starts and inside this php foreach loop the width of this progress-bar should be incremented.
Is this possible? With jquery?
<div id="foo" class="progress progress-striped active">
<div class="progress-bar" style="width: 1%"></div>
</div>