{"id":2614,"date":"2011-09-30T12:52:00","date_gmt":"2011-09-30T12:52:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/webdev\/2011\/09\/30\/javascript-reference-group-dedicated-worker\/"},"modified":"2022-08-11T01:45:53","modified_gmt":"2022-08-11T08:45:53","slug":"javascript-reference-group-dedicated-worker","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/javascript-reference-group-dedicated-worker\/","title":{"rendered":"JavaScript Reference group Dedicated Worker"},"content":{"rendered":"<p>Travis Leithead showed a video <a href=\"https:\/\/channel9.msdn.com\/Events\/BUILD\/BUILD2011\/PLAT-379P\">&#8220;Building responsive apps and sites with HTML5 web workers&#8221;<\/a> in BUILD. When editing &#8220;Dedicated worker&#8221; JavaScript file in Visual Studio 11 Developer&#8217;s Preview, we need to add the following line in the beginning of the file to get the proper JavaScript web walker IntelliSense in the editor:<\/p>\n<pre class=\"code\"><span style=\"background: white;color: green\">\/\/\/ &lt;reference group=\"Dedicated Worker\" \/&gt;<\/span><\/pre>\n<p>&#8220;Dedicated Worker&#8221; is a reference Group defined in the Tools-&gt;Options-&gt;Text Editor-&gt;JavaScript-&gt;IntelliSense-&gt;References. It contains a JavaScript file which contains all the web walker JavaScript HTML5 objects.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2011\/09\/6036.clip_image002_thumb.jpg\"><img decoding=\"async\" style=\"padding-left: 0px;padding-right: 0px;padding-top: 0px;border: 0px\" title=\"clip_image002\" border=\"0\" alt=\"clip_image002\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2011\/09\/6036.clip_image002_thumb.jpg\" width=\"696\" height=\"339\" \/><\/a><\/p>\n<p>You can then see IntelliSense, such as importScripts:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2011\/09\/0564.clip_image003_thumb.png\"><img decoding=\"async\" style=\"padding-left: 0px;padding-right: 0px;padding-top: 0px;border: 0px\" title=\"clip_image003\" border=\"0\" alt=\"clip_image003\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2011\/09\/0564.clip_image003_thumb.png\" width=\"327\" height=\"74\" \/><\/a><\/p>\n<p>Also, IntelliSense will be shown form the JavaScript files referenced via importScripts function as well.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2011\/09\/3223.clip_image004_thumb.png\"><img decoding=\"async\" style=\"padding-left: 0px;padding-right: 0px;padding-top: 0px;border: 0px\" title=\"clip_image004\" border=\"0\" alt=\"clip_image004\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2011\/09\/3223.clip_image004_thumb.png\" width=\"346\" height=\"329\" \/><\/a><\/p>\n<p>Best regards,<\/p>\n<p>Xinyang Qiu<\/p>\n<p>Web Platform and Tools<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Travis Leithead showed a video &#8220;Building responsive apps and sites with HTML5 web workers&#8221; in BUILD. When editing &#8220;Dedicated worker&#8221; JavaScript file in Visual Studio 11 Developer&#8217;s Preview, we need to add the following line in the beginning of the file to get the proper JavaScript web walker IntelliSense in the editor: \/\/\/ &lt;reference group=&#8221;Dedicated [&hellip;]<\/p>\n","protected":false},"author":404,"featured_media":58792,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[197],"tags":[7381,7372,7364,7391],"class_list":["post-2614","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aspnet","tag-html5","tag-javascript","tag-references","tag-visual-studio-11-developer-preview"],"acf":[],"blog_post_summary":"<p>Travis Leithead showed a video &#8220;Building responsive apps and sites with HTML5 web workers&#8221; in BUILD. When editing &#8220;Dedicated worker&#8221; JavaScript file in Visual Studio 11 Developer&#8217;s Preview, we need to add the following line in the beginning of the file to get the proper JavaScript web walker IntelliSense in the editor: \/\/\/ &lt;reference group=&#8221;Dedicated [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/2614","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/users\/404"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=2614"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/2614\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/58792"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=2614"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=2614"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=2614"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}