After the battle, I found an urgent problem and its solution.
Actual problem:
- I use external fonts except those that are included by default in WP.
- External fonts take some time to load into memory, and then the text is displayed.
- At the same time, the list is loading already, and the font is loading.
- Finally, the text is displayed and (maybe due to the extension), the selected index location moves down.
- Without closing the application, the font seems to remain in memory, and the next time it does not take much time, and the identifier of the pointer is displayed correctly.
My decision:
- I loaded (external) fonts while loading the main page. This takes a small amount of time and therefore does not affect application performance (in terms of download time).
I wish if any architect can better explain what happened, or, in other words, I’m interested in knowing the technical background of the “current problem”.
Thanks to all those who made suggestions.
Shahaab
source share