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
Hi,
Sometimes, like with Google Fonts, there's no extension at the end of the URL. Then we'll need to set the resource type to help toast to load the resource as expected :
Thanks for the suggestion! This issue actually came up recently (#23) and at the time we decided to recommend that users add #.css as a workaround until we come up with a more permanent solution (i.e. loadjs('https://fonts.googleapis.com/css?family=Open+Sans#.css')).
If we want to handle this in a more permanent way, I'm partial to using "css+" as a prefix over "[css]" but I'm curious to hear what others think. Is there a standard syntax for indicating the expected content-type of a file in a url?
Hi,
Sometimes, like with Google Fonts, there's no extension at the end of the URL. Then we'll need to set the resource type to help toast to load the resource as expected :
load('[css]https://fonts.googleapis.com/css?family=Open+Sans');
it requires to modify code with something like
` if (/.css$/.test(path)) {
} else if (/^[css].+/.test(path)) {
} else if (/^[js].+/.test(path)) {
} else {
}`
Regards
Michel
The text was updated successfully, but these errors were encountered: