You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firefox and I'm sure other browser give the same warning when using preload and not using the resource soon after:
Either way, this was a hack for when the bot is playing a card or human is taking a card from the deck. The animation would be in progress while at the same time the browser would load the card image. This would mess up the animation.
Clearly it's not desirable for the player to preload every card asset in their browser. So this should get fixed, eventually...
One possible fix is to bundle the SVGs by importing/exporting them in a module. This will increase the bundle size. The total uncompressed size of all card assets is 2.66 MB.
Another solution could be looking at the top X cards of the deck and "preloading" the assets. Even only preloading the top most card of the deck should be good enough. The biggest card size with a face is 266 KB and non-face cards are ~15 KB.
Although depending on the player's internet stability bundling might be the better option. And also when the player goes offline they wouldn't be able to load further card assets.
The text was updated successfully, but these errors were encountered:
Firefox and I'm sure other browser give the same warning when using
preload
and not using the resource soon after:Either way, this was a hack for when the bot is playing a card or human is taking a card from the deck. The animation would be in progress while at the same time the browser would load the card image. This would mess up the animation.
Clearly it's not desirable for the player to preload every card asset in their browser. So this should get fixed, eventually...
One possible fix is to bundle the SVGs by importing/exporting them in a module. This will increase the bundle size. The total uncompressed size of all card assets is 2.66 MB.
Another solution could be looking at the top X cards of the deck and "preloading" the assets. Even only preloading the top most card of the deck should be good enough. The biggest card size with a face is 266 KB and non-face cards are ~15 KB.
Although depending on the player's internet stability bundling might be the better option. And also when the player goes offline they wouldn't be able to load further card assets.
The text was updated successfully, but these errors were encountered: