christianwgd/django-bootstrap-icons

Template rendering is insanely slow when using this package

Closed this issue · 3 comments

Hi,

Not sure what happens, but I have a table with 100 rows in which I render some icons and it takes 20 seconds to finish. I took me a while to figure out what caused that slowdown 😅 .

Did you enable the icon cache like described in the doc here? This should prevent these extended loading times.

Just tested this by myself and added four different icons one hundert times in a table. With icon cache enabled I had no findings on unusual response times.

You can find this sample code in the test app in the "samples" template.

Missed that. I didn't add the cache dir.

Thank you for your response!