sophiathekitty/NullHub

Widgets for quicker app loading

Closed this issue · 5 comments

make php versions of the templates that can build and populate the html with data. so the app can load the floors widget through the templates model and then just add the widget to the app. and then the views can worry about updating the data as needed.

features

  • widget loader js class that can grab a simple template wrapper to drop the final widget into.
  • widget loader should also handle widgets that can't have a wrapper but will instead support a loading overlay that can be shown until the individual elements all load in.
  • load widgets with parameters.

widgets

  • floors section
  • rooms list
  • weather section
  • clock and weather block
  • upcoming meals list
  • meal details
  • main menu
  • section nav
  • user/profile banner

got the rooms widgets loading in and it's really improving the load time

i think i got the weather section loading in ok... it does feel a bit slower because it's blank longer... but i think i want to eventually have some sort of loading overlay... i still need to get the clock loading in ok...

i should see about updating how these widgets load. maybe combining a template with a loading spinner thing that can get replaced by the widget once it loads. maybe i should make a special javascript class to handle widgets. that could include some hooks for doing a universal loader for the initial page load.

need to make sure it's not caching the widgets so it doesn't load outdated data

i think i'm going to call this issue done enough. widgets are now just part of how i do new stuff....