Setup an Application Pool so that it is always running and preloaded with Application Initialization

This works in IIS version 7/7.5 and is a native install (through features) for IIS 8+. Once setup your Application Pool will automatically restart after recycling and compile your .NET website so the first visitor does not have to sit through compilation.

Configure the IIS Application Initialization module

NOTE: Configuration Editor is found by clicking on the Server node in IIS under the Management in the Features View.

Configuration Editor Location

Read More

Speeding up GoDaddy Shared Hosting

I’ve recently had the need to use GoDaddy Shared Windows Hosting for a website. In use I’ve noticed the website can load slow after periods of no one using it. Usually a simple enough solution, I just go into IIS and adjust the Application Pools Idle timeout. Well GoDaddy doesn’t give direct access to the Application Pool the website is using through Plesk; they do however allow you to setup scheduled tasks. While doing a quick search I came across this:

https://support.godaddy.com/help/article/8970/scheduling-tasks-with-plesk-shared-hosting

Code saved below for posterity:

Windows

Type Path
Executable C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Argument -c “(new-object system.net.webclient).downloadstring(‘http://[domain.tld]\[path]\[file_name]‘)”

Linux

Type Path
Executable C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP54\php-cgi.exe
Argument G:\PleskVhosts\[domain.tld]\[path]\[file_name]

 

Schedule whatever code works for you as a new scheduled task and make sure it runs every N minutes to beat the idle timeout.

Read More

Smush your images to an optimized state

I’ve been big into optimizing content lately, GZIPing, caching, combining, minifying and what not as part of the final phase of my development process. One thing that has always bothered me though  has been getting my images compressed just right. I’m very comfortable with Photoshop and picking the right tool for the job: PNG, JPG and GIF but I would often get lazy when it comes to compressing things down as far as they can acceptable go. That’s where Smush.it comes in. (more…)

Read More