I’m running some speed tests and I got thinking, does anyone know how to defer parsing of external javascript until it’s tab bar parent is clicked? I have a few HTML embeds inside of tab bars with external JS that I want to execute only when tabbed into.
For the tab click, use eval() to execute the script.
P.S.: If you want to go all out, use HTTP2 w/ server PUSH. Fast as lightning (instant loading).
More speed?
P.P.S.: Put the CSS for your minimal UI (e.g. Navbar + Menu) inline in the <head> of your html document. Don’t worry, I have tested it with 1000 lines of CSS. Result? Lightning fast.