I’m struggling to break old coding habits and I have a question about one in particular. My app uses a lot of specialised icons each of which is SVG and is displayed using an HTML element.
My old habit has me reading them all into variables when the app loads. Then when they are used, the HTML points to the variable that holds the SVG code as text. In the dark ages of computing, this was faster than doing a DB search every time you wanted to display one.
However, I’m wondering if using Do a Search for Icons every time I use one is just as fast if bubble is remembering that it already searched for that icon so does not do it again.