I am wondering about the use of option sets and images. I use a lot of SVG images as icons to have some custom icons for my apps. I previously used data types to store them, as they are usually connected to ‘options’ users would have on products such as product type.
Recently I did a quick and dirty test by having a set of 50 in an R.G. load as a data type and compared that to the load speed of the same 50 as an option set.
The option set was hands down faster, like about 4 seconds faster.
Now I have migrated a lot of these to be option sets and on a review page I use a set of four different types of option sets, one has 13, another 6, one other is 40 and the last is 50 different items in each. Each also has 3 different images (all SVGs) used as icons and the reason being they are different colors.
What I am getting is messages from bubble referencing speed optimization. It states that the downloading of images is slowing down my app performance and to optimize I should consider showing less or making the images smaller. These images are SVGs and have a very small size individually.
I am confused on a couple issues here.
- My understanding of option sets were they do not touch the database (ie: do not need to be downloaded from the database) and that they essential were browser side or something like that. This is what makes them faster to load.
If that is the case, why would having images affect the speed at which they are loaded? Are they still needing to download those images and so still having to touch the database to retrieve them and thus not really acting browser side?
- If my SVG files are so small, why would there still be a concern of speed optimization. These file sizes are pretty tiny, and even though I am loading a considerable number, it still seems like they shouldn’t really affect the speed overall. After all, at these sizes, the total 120 or so I am loading on the page would still only average to be less than this one normal image.
When I load the image above I get no performance warnings.
- This message is intermittent, hence the reason I do not have a screen shot of it as I can’t for the life of me get it to display again. I will update this post at some point if I see it again. I’ve seen it maybe 4 or 5 times over the last two days as I’ve been building this page.
I got the message again.
Took a very long time for the images to load and took long time for the images to change the image source to reflect the conditionals being met.
Anybody have any insight as to why this type of warning is not persistent if in fact it is an issue regarding performance?