{"id":834,"date":"2009-09-22T08:53:35","date_gmt":"2009-09-22T13:53:35","guid":{"rendered":"http:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/834"},"modified":"2009-09-22T08:53:35","modified_gmt":"2009-09-22T13:53:35","slug":"two-cool-tricks-for-delay-loading-javascript","status":"publish","type":"post","link":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/834","title":{"rendered":"Two cool tricks for delay loading JavaScript"},"content":{"rendered":"

From Ajaxian:<\/p>\n

Gmail Mobile team talks Latency and Code Loading<\/a><\/h4>\n

Another one from Microsoft:<\/p>\n

Doloto<\/b> on DevLabs<\/a><\/h4>\n","protected":false},"excerpt":{"rendered":"

From Ajaxian: Gmail Mobile team talks Latency and Code Loading Another one from Microsoft: Doloto on DevLabs<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[4],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pd5QIe-ds","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":399,"url":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/399","url_meta":{"origin":834,"position":0},"title":"Visual Studio 2008 Explorer and Designers Package fails to load","date":"July 8, 2008","format":false,"excerpt":"Package Load Failure Package 'Visual Studio Explorers and Designers Package' has failed to load properly ( GUID = {8D8529D3-625D-4496-8354-3DAD630ECC1B} ). Please contact package vendor for assistance. Application restart is recommended, due to possible environment corruption. Would you like to disable loading this package in the future? You may use 'devenv\u2026","rel":"","context":"In "Coding"","img":{"alt_text":"image","src":"https:\/\/i0.wp.com\/www.wiredprairie.us\/blog\/wp-content\/uploads\/2008\/07\/image.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1939,"url":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/1939","url_meta":{"origin":834,"position":1},"title":"Reading a text file (or JSON file) from a Windows 8 Runtime application","date":"September 1, 2013","format":false,"excerpt":"I just had need of reading a small JSON file into a Windows 8 application using the Windows Runtime. Uri uri = new Uri(\"ms-appx:\/\/\/assets\/data.json\");var storageFile = await Windows.Storage.StorageFile.GetFileFromApplicationUriAsync(uri);using (var storageStream = await storageFile.OpenReadAsync()){ using (Stream stream = storageStream.AsStreamForRead()) { using (StreamReader reader = new StreamReader(stream)) { var jsonText = reader.ReadToEnd();\u2026","rel":"","context":"In "Coding"","img":{"alt_text":"image","src":"https:\/\/i0.wp.com\/www.wiredprairie.us\/blog\/wp-content\/uploads\/2013\/09\/image_thumb1.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1570,"url":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/1570","url_meta":{"origin":834,"position":2},"title":"JavaScript: isScrolledIntoView","date":"March 15, 2012","format":false,"excerpt":"I needed a simple way to detect when a placeholder DIV (that would contain an image) had scrolled into the current viewport of the browser. I\u2019ve seen a few solutions that worked, and a few that didn\u2019t (hello? test your code!). Here\u2019s my simple solution: function isScrolledIntoView(elem) { elem =\u2026","rel":"","context":"In "Coding"","img":{"alt_text":"SmugMupBrowser-live","src":"https:\/\/i0.wp.com\/www.wiredprairie.us\/blog\/wp-content\/uploads\/2012\/03\/SmugMupBrowser-live.gif?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":890,"url":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/890","url_meta":{"origin":834,"position":3},"title":"Disabling automatic Sys.UI.Control attachment","date":"January 17, 2010","format":false,"excerpt":"If you\u2019re using the Microsoft Ajax Library (learn), you may not always want to start the automatic \u201cattach\u201d process that takes place when the page loads. It\u2019s easy to disable, but not yet documented any place I could find easily.