Author Topic: Put all *. js files locally for local web use  (Read 1568 times)

jackkomo

  • NewMember
  • *
  • Posts: 7
Put all *. js files locally for local web use
« on: May 14, 2017, 04:43:00 AM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 6867
  • Country: us
    • LowPowerLab
Re: Put all *. js files locally for local web use
« Reply #1 on: May 15, 2017, 06:18:01 PM »
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.

Jason

  • Jr. Member
  • **
  • Posts: 57

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6867
  • Country: us
    • LowPowerLab
Re: Put all *. js files locally for local web use
« Reply #3 on: November 12, 2018, 08:07:32 AM »
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.