unpkg.com cdn & unfurling javascript locally...
short factual post
problem generated by PEBCAC: the idea of using a service to unfurl locally stored .js (which isnt locally stored but should be), was probably one of cloud and volume seats . . . ? (note: this part doesn't really matter to me.),
- but this decision tree lead to my una site relying on a over burdened cdn, and basically stalling out - unable to load, or make a post. on wired ethernet. in 2020.
possible solution: put the javascript in the una directory, and load it upon login. it may look cool to have a service for .js, but it's not autonomous and a clear point for failure. why do all that when you can just store the java locally? simple designs work best, i dont have to remind anyone of that.
-
-
- · Omar Amer
-
·
In reply to LeonidS
- ·
got it. thats cool LeonidS . :-)
speaking of scripts malfunctioning, more importantly there are undeclared breaking functions in the public_html/jquery/jquery.min.js that una is currently using..
see screenshot:
-
-
·
LeonidS
- ·
It is a standard JQery min code, the same which is placed in their CDN.
-
·
LeonidS
-
- · Omar Amer
-
·
In reply to LeonidS
- ·
if the code sits in public_plugins inside of unas dir tree then why is there a cdn involved at all? please help me understand why i need a wireless hat to come meet my session if there is already a hat in the drawer (public_plugins, re jquery). haha :) thank u
-
-
·
LeonidS
-
·
In reply to Omar Amer
- ·
It is more stable to have the JQuery code in the own folder and more comfortable for the local development.
-
·
LeonidS
-
- · Omar Amer
-
·
In reply to LeonidS
- ·
since I've never actually written a javascript app- cant the code just live sandboxed inside the plugins directory? i really dont understand the utility in calling it remotely... heres why:
ok so we call it remotely to save space in the compiler or something because the instructions run a lot?
or is there another reason ?
because... if thats the case, wouldnt it be faster to have the java locally stored like every single other site out there? i mean, its in the public_plugins in my una site heirarchy, why does it need to be called from a url? it cant instanciate itself without a trigger? thats definitely not it, this isnt wake on lan. LOL.
so, please educate me, thanks Leonid. :) if you dont say anything i'll probably have read about it by the time you see this, but a responses for the others (and if i cant find it) would be appreciated. thanks kindly, pleased be to advise. thx.
-
-
·
LeonidS
-
·
In reply to Omar Amer
- ·
I may add that for the caching JS code it is more comfortable to have all similar files on the server too.
-
·
LeonidS