klipstein/dojango — Issue #28: 28 - Standard input fields visible during page load 
Author: klipstein
Created: 2011-11-06 12:55:22+00:00
State: open

What steps will reproduce the problem?
1. Add the dojo.require function calls at the end of the body tag by
looping through the DOJANGO.COLLECTOR variable.
2. Open the page in a browser. (I only tested with Firefox)

What is the expected output? What do you see instead?
The dojo widget replacement is done after the page has been rendered. This
will cause the standard input fields to be visible while the widgets are
replaced.

What version of the product are you using? On what operating system?
SVN revision 210

I created a fix for this. By letting the middleware replace a placeholder
in the response the dojo.require can be placed anywhere in the output. If
placed within the head section, the widgets are loaded before the page is
rendered.

A patch file is attached.
Enjoy!

Original link: http://code.google.com/p/dojango/issues/detail?id=28