I want to install a JS function, but not wait for an answer. The only way I can do this is:
setTimeout(function() { myFunc(); },0);
But it seems ... ineffective at best. Any ideas?
Why is this inefficient?
Also, don't forget that the javascript browser is single-threaded. Thus, while your function is running, you will implicitly wait for it to return.
(there could be asynchronous ajax calls here)
You might want to watch webworkers
Source: https://habr.com/ru/post/906397/More articles:remove ppa in ubuntu without using ppa-purge - ubuntujetty: updated static resources in reversal mode - mavenJava conversion of images to byte sizes of an array - javaHow can I control the speed with which Spring gets out of the queue? - javaMaven release plugin with parameterized version - mavenDefault Return Value Return value when Enum type is not known - enumsglPopMatrix () yells "unsupported texture format in setup_hardware_state" - cGoogle Charts in Rails 3.1 Ajax Partial - javascriptUndefined action method for Formtastic :: FormBuilder - ruby-on-railshttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/906402/restrict-access-to-just-some-source-code-in-team-foundation-server-2010&usg=ALkJrhiao2UxkzNSriS3ghVBCIyyAqK2OwAll Articles