IE Cannot Open The Internet Site - Operation Aborted

An issue that I encountered when adding JavaScript into a page

I found this error this morning after adding some JavaScript into a page.

Internet Explorer Cannot Open The Internet Site ***** Operation Aborted

Which I found more than a little odd since I was using some well supported jQuery that wasn't doing anything particularly fancy.

After a lot of Googling I found out that this is a known issue and Microsoft have issued some patches concerning it, but if you want to fix the issue across the board for IE you just need to add the following into your opening script tag.

defer='defer'

This basically will defer the execution of the script until the page has finished loading (something I didn't particularly want to happen but ho-hum!)

Recent posts View all

Ruby

A quick tip to speed up bundle installs

Use more computing power to install gems faster

Rails

Getting Turbolinks to work with Webpack

How to re-add Turbolinks back into a Rails app when moving to Webpack