({{, (RefLink[SynchronousInitialization, paclet:ref/SynchronousInitialization]) 
is an option for (RefLink[Manipulate, paclet:ref/Manipulate]), (RefLink[DynamicModule, paclet:ref/DynamicModule]), and related functions that specifies whether or not to evaluate the expression given as the setting for (RefLink[Initialization, paclet:ref/Initialization]) synchronously.}})

OpenersNotesSection(Spacer1)Details

With (RefLink[SynchronousInitialization, paclet:ref/SynchronousInitialization])->(RefLink[True, paclet:ref/True]), the first time a (RefLink[Manipulate, paclet:ref/Manipulate]) or (RefLink[DynamicModule, paclet:ref/DynamicModule]) is displayed, it will wait until the evaluation of the initialization expression is complete before proceeding.

With (RefLink[SynchronousInitialization, paclet:ref/SynchronousInitialization])->(RefLink[False, paclet:ref/False]), the evaluation of the initialization expression will be queued up, and performed asynchronously.

If a (RefLink[DynamicModule, paclet:ref/DynamicModule]) with (RefLink[SynchronousInitialization, paclet:ref/SynchronousInitialization])->(RefLink[False, paclet:ref/False]) contains other dynamic objects with (RefLink[SynchronousUpdating, paclet:ref/SynchronousUpdating])->(RefLink[True, paclet:ref/True]), then there is no guarantee that the initialization of the dynamic module will be complete before dynamic objects inside it are updated.

OpenersPrimaryExamplesSection(Spacer1)Examples  (2)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

By default, the (RefLink[Manipulate, paclet:ref/Manipulate]) initializations are evaluated synchronously:

Manipulate[Pause[1];f[x],{x,0,1},Initialization:>(f[x_]:=Sin[x])]

Force asynchronous initialization:

Manipulate[Pause[1];f[x],{x,0,1},Initialization:>(f[x_]:=Sin[x]),SynchronousInitialization->False]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[SynchronousUpdating, paclet:ref/SynchronousUpdating])  ▪  (RefLink[Initialization, paclet:ref/Initialization])  ▪  (RefLink[$SynchronousEvaluation, paclet:ref/$SynchronousEvaluation])  ▪  (RefLink[Manipulate, paclet:ref/Manipulate])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Options & Styling for Interactive Manipulation, paclet:guide/OptionsAndStylingForInteractiveManipulation])}})}})