Put all *. js files locally for local web use

Started by jackkomo, May 14, 2017, 04:43:00 AM

jackkomo

Hello, Felix! I used the Pigateway in home, and it works good. But sometime i faced a problem. When the internet is off,  i can not login the home page of Pigateway. So i checked the code, and found that some *.js files are loaded in 'index.html' from internet. Just like 'flot' js and 'curvedLines'.

Can we put the *. js files  locally for local web use,  like others?  How can i do it?  Thanks! :)

Have a nice day!

Felix

Yes you can. But internet access is almost an assumption.
Maybe a future patch can include a fallback although to me that's not useful.


Felix

Your contribution is appreciated. I would like others to chime in and offer their feedback on this topic.
Would not be hard to make everything load from the Pi, just wondering if there are any unwanted implications in some use cases.