Tagged pages

Found 6 articles tagged with Async

Non blocking CSS load on the page
Load external CSS files in an async manner
Like JavaScript, CSS files are also loaded on the page by default in a blocking manner. Luckily for us, for JavaScript we can use either async or defer attributes on the script tag itself to change the behavior of JavaScript external file loading... read more
Non blocking writing to console in C#
Write message to console without blocking current thread
The fast and most commonly used method to debug code is for sure using console applications. Since main operations are reading input and writing output, it does not take much to set it up and start debugging your code. One more reason for using console application is to test the performance... read more
One way, fire and forget action in WCF
Long running process invoke from ASP.NET web application
In case you are building a web app that needs to perform some complex or long running task, for sure you would't want that task to slow down your website or web application. For example you have a database of growing number of members on your website and you want to send a notification after you published some page on the website. Imagine you have 10,000+ members and that you are composing different message for each of them based on their account information and then sending an email with notification message. ... read more
Synchronous vs asynchronous MVC controllers
Advantage of using asynchronous over synchronous controller in MVC
Maybe you did not know but asp.net applications have limited number of threads available to process requests. This value is set in your machine.config in configuration/system.web/processModel node. This file is located at ... read more
Async file upload with MVC4
Uploading file asynchronously using JQuery and MVC4
Uploading files with form submit on web page, especially large file requires user to wait for browser until file is uploaded. This does not produce very nice user experience as user needs to wait without any notification for file to be uploaded... read more
Dynamic JQuery plugin files load
Improve page load when using multiple JQuery plugins
You all probably had to deal with certain js files for JQuery plug-in. Usually developers add reference to a js file in Master page (if using WebForms) on layout view (is using MVC). This practice is not so bad, because you have references maintained in one file, but bad thing is that all js file are being load even if none of then are used on the particular pages. ... read more