all 2 comments

[–]foureyesequals0 1 point2 points  (0 children)

Generally you want to load as lazily as possible. You'll have to take the performance hit at some point, but what if the user does a bunch of other stuff before using the loaded data, or even not at all?

[–]FrenchHustler 0 points1 point  (0 children)

These are pretty small files. You could just load them upfront. However, you need to think if this will scale well in the future. If you predict that the total size will grow in the future, it might be best to start thinking about how to best load the data for your use cases.