-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to load SVG from CDN #489
Comments
Does the SVG refer to external files, like images? If it's on another domain than your app it won't work |
Yes it is on another domain why would that not work PNG images from the same domain have no issues ? |
No I mean from inside the SVG, does it for instance incorporates images? SVG generally is notorious to cause security issues on older devices, due to its ability to render foreign resources. We even have very old devices which refuse to render any remote SVG to canvas. |
No that seems not to be the case, if we load from local asset folder we should be ok? even on these older devices ? |
I'd say, do a few tests... |
OT: you have a log |
I am not sure I understand what you are saying where should I check to fix this memory leak? |
Here are some discussions about the issue: https://stackoverflow.com/questions/70373659/solidjs-computations-created-outside-a-createroot-or-render-will-never-be |
Hey @philippe-wm - I know where this is happening - wondering how you handle it. But we create "global signals" that exist for the entire app - I'm not concerned about cleanup due to I want them to exist until the app is closed (which then the browser will clean them up) - Just want to get your thoughts - do you prefer just using Context or just createRoot to wrap global signals to ignore the warning? |
@chiefcll I think generally Solid won't show the warning if you create global signals before the app is rendered (we have a number of global signals as well), but after that point you should use (we're getting a bit OT though) |
the SVG's icons are working perfectly from local assets |
Here's relevant reading:
L3 renderer doesn't set As a side note, normal image loading uses either an |
Indeed, fairly simple change if that is desired. Do we know if setting that fixes the issue? @MwareSolutons can you check if this resolves it on your device:
by running that somewhere in a JS file for me?
!! that's a good spot - we should align that to be |
Any update @MwareSolutons ? |
Trying to load and SVG icon from CDN by setting the src on a view
<View autosize={true} style={styles} src={icon}></View>
https://cloudtv.akamaized.net/donotremove/tvms/icons/light/shield.svg
While the response is 200 from the CDN it still give an error in LNG and it wont show the icon
The error:
The text was updated successfully, but these errors were encountered: