Our Webside and data are based within the EU (Ireland).

Add this as a Mobile App. In your Mobile Browser "Add to Home Screen" to add us as a Mobile App.

Bootstrap dotnet core hamburger menu not working

After heavily searching the web to find out why my Bootstrap dotnet core hamburger menu stopped working, I gave up. Every solution failed. So I took a closer look at the tag [script async src].

Then I saw the problem in the word async in the tag [script async src]. You see async loads the javascript files asynchronously. In short, the jquery.js file was not always loaded before the bootstrap.js file. This is a problem because for bootstrap to work, jquery must load first.

I removed async from my javascript tags and bingo, it worked. The problem did my head in because using a CDN for my javascript worked but local files failed whatever version I used until I removed async. The clue was there. I used the developer tools in the browser and a null error kept showing up in bootstrap. If jquery was not loaded before bootstrap then the object would be null. I’ll have to keep an eye out for that one in future.

Tools

Mortgage Calculator

Kindle Book

Those Who Live Forever Kindle Edition from Amazon.com

Learn more »

Paperback Book

Those Who Live Forever Paperback Edition from Amazon.com

Learn more »