malsup / blockui

jQuery BlockUI Plugin
http://jquery.malsup.com/block/
1.69k stars 506 forks source link

Slowdown: Install() Layer3 not needed if no Msg #126

Open rockResolve opened 8 years ago

rockResolve commented 8 years ago

What purpose does Layer3 serve if msg is not set.

In install() if no msg is set lyr3 is not shown, but still created and centered.

Not creating unused Layer3 could result in considerably improved speed when multiple instances of blockUI used for multiple elements without a message e.g. disable most elements except a specific mandatory set.

Removing Layer3 if no msg would require onBlock triggering to be reset.