Stop Content Flash

Content flash is that brief display of your SPA html without content, before a hidden Ajax call receives data and interpolates same into the page. We would prefer that the page display initially with the initial content, as a traditional server-rendered web page would. now supports sending the initial content with the static SPA page. Now, you can include a script tag in the static page, with the appropriate attributes, and the SQL will be extracted from the tag, submitted to the database, and the results placed as the body of the script tag. The page JavaScript can then extract the body of the script tag and feed it to the templater for inclusion in the page.


comments powered by Disqus