Load Different Javascript Resources Per Dashboard?

So I have a bunch of different dashboards. Some are used on tablets throughout the house, some phones, etc. For my wall tablets I am running into an issue where the tablets are just not powerful enough and run out of ram etc.

On those tablets though I only use a couple of cards. Is it possible to load different javascript modules depending on the dashboard?

I know in the past you could define modules etc within the dashboard yaml, but now it complains that it wants it to be a part of the main config.

This means that my tablets are downloading and loading a bunch of JS they don’t even use.