JS Devs. while working with <data urls>, have you ...
# random
m
JS Devs. while working with data urls, have you ACTUALLY run in to any browser-imposed size limitations?
g
Yup, few users had raised issue that https://mermaid.live URLs exceed the size limit. I added compression support, which was pretty effective in bringing down the size.
m
LOL, this is the exact same issue a customer of mine reported as well 😂
m
Nice. What's the
mediaType
you eventually end up using (post compression)?
f
If the goal of using Data URIs is to avoid additional download of assets after the page is loaded, then alternatively you can render svg on the page directly like regular markup. We do this all the time, as not only data URIs pose these limits, they're hard to maintain.