This may be a stupid question, but instead of "visibility:hidden"
have you tried "display:none;"
? I had to solve the same problem for a project I'm working on and I'm reasonably sure display:none worked.
You can also use the
$(foo).dialog({ autoOpen: false });
option to "initialize" the dialog (thus hiding it and all that good stuff). The only catch is, you'll probably see the dialog "flicker" as the page loads but before jQuery has a chance to hide it.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…