Expand the object explorer to either views, functions or stored procedures
Right click on one of the object types mentioned in step 3 that you KNOW has a large alter/create script
Select to script it as either alter or create to a new query pane
Result:
While the script is generated the UI is unresponsive and no wait indicator is displayed.
Repro:
NOTE: SSMS does NOT do this asynchronously...