©2008-2017 David V Keeney All rights reserved.
To avoid content flash on initial application loading, you can embed an SQL query in your application html. When RdbHost.com sends the app html page to the browser, it scans for an embedded query, executes the query, and inlines the results, as JSON, into the html.
The embedded SQL is part of a script tag, as attribute 'sql' or 'data-sql'. The query is executed as the role given by the 'role' or 'data-role' attribute, by default the preauth role.. The script must have id 'RDBHOST-SQL-INLINE-ID', and be of a type that the browser will ignore. I suggest type 'text/sql'.
If the query errors, the error will be provided as the body, in the usual RdbHost JSON error format.