.YSlow Performance Analyzer

Yahoo's Plugin For Web Page Performance Analysis is YSlow

Bundling and Minification

Bundling - adding files together to lower HTTP request count. JavaScript and CSS files can be combined. Images can be combined into a "Sprite".
When combining JavaScript files, order is especially important.
Browsers have a limit to the number of HTTP requests they can perform at one time. The number of concurrent connections per host name:

IE7 = 2
IE8 = 6
IE9 = 6
IE10 = 8
Chrome 29 = 6

YSlow Performance Analyzer

Minification - reduces the size of the file by removing unnecessary characters. Can be performed on any interpreted language.
Levels of minification:
1. Remove white space and comments (simple to perform; minimal risks)
2. Remove extra semicolons and curly braces (has some risk)
3. Shorten the name of local variables (some risk)
4. Remove unused or unreachable code. (more risk)
5. Shorten function names and global variables (most risk)

Most minifiers target for level 3.
Different from compression, as a browser can interpret a minified file as-is (i.e. does not need to decompress first).

Minification savings varies. jQuery standard library reduces the file size by about one-third, while AngularJS file size is reduced to about one-eight.

Bundling and minification is easier because of support within development frameworks.

.Google PageSpeed Insights

Identify Ways to Make Website Faster and More Mobile-Friendly with Google PageSpeed Insights

ASP.NET Optimization Library

Get the ASP.NET optimization library as a NuGet package called "Microsoft ASP.NET Web Optimaztion". The documentation is located at CodePlex. They require ASP.NET 4.0+.

Error | ASP.NET Developer


Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /srv/disk9/1218369/www/kcshadow.net/aspnet/includes/common.inc:2748) in drupal_send_headers() (line 1232 of /srv/disk9/1218369/www/kcshadow.net/aspnet/includes/bootstrap.inc).
  • PDOException: SQLSTATE[42000]: Syntax error or access violation: 1142 INSERT command denied to user '1218369_b2cf'@'' for table 'watchdog': INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ( [:db_insert_placeholder_0] => 0 [:db_insert_placeholder_1] => cron [:db_insert_placeholder_2] => Attempting to re-run cron while it is already running. [:db_insert_placeholder_3] => a:0:{} [:db_insert_placeholder_4] => 4 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => http://www.kcshadow.net/aspnet/?q=bundlingminification [:db_insert_placeholder_7] => [:db_insert_placeholder_8] => [:db_insert_placeholder_9] => 1534727946 ) in dblog_watchdog() (line 160 of /srv/disk9/1218369/www/kcshadow.net/aspnet/modules/dblog/dblog.module).
The website encountered an unexpected error. Please try again later.