ENsuring Single Instance Of Event Handlers

I recently had a performance issue when an AJAX control updated the DOM and the script added event bindings to the elements. However, some elements were unchanged and the events were still added again, causing multiple events and performance degradation within the browser. The existing fix was: Sure, you can do that. An easier way is to ensure that all current events are removed on the element and then adding it again.

read more

Optimizing First Load for MVC in Azure Web Roles

Azure DevOps release pipelines are awesome for continuous deployment of code from Git repositories to Azure web roles. However, after that update the first page loadcan be slow. In my case, very slow. The warm-up took on average 90 seconds. Another great feature of cloud is hyper scale and automatic horizontal scaling. But again, I am worried about that initial page load.

read more

Ensure loading of background images using jQuery

I have a system that uses a set of other integration points, specifically reading images from the other system and requires login. If the cookie expires for the other system then I must reload my page to force a new login. There are no events triggered for background image loading in the DOM so I need to check the loading specifically. To do this, I run the following method when loading new content to the page, in this case with AJAX.

read more

MVC integration with FreshBooks Cloud Accounting

FreshBooks is my cloud accounting service that handles time tracking, expenses andinvoicing. I was looking for a way to integrate the solution into my standard management app which has an MVC backend. Here's a quick breakdown of what you need to do to make this work.

read more
1 2 3 4