LVGL freezes when too many controls need to be loaded, and can only be used once the load is complete

Because I have a list, in which there are hundreds or even thousands of buttons. Every time I enter this view, he will load hundreds or thousands of buttons. During the loading process, I want to use a gear rotation to represent it, but I find that lvgl will be stuck and can’t be used until these buttons are loaded.
How can I solve this problem?