With mdb.js script in the HEAD part of the page, Waves.init fails on the line: body.addEventListener('mousedown', showEffect, false);
due to document.body = null. At this point document object exists and has head but no body.
Moving <script src=mdb.js... line to after the body in DOM makes this work fine.
Your working environment and MDB version information
HTML5, Windows 10, Chrome 66, MDB free version
Resources (screenshots, code snippets etc.)
For every question of technical nature, in order to get the most detailed answer as soon as possible, ask on our dedicated Support Forum
Expected behavior
Wave.init not to throw an exception
Actual behavior
With mdb.js script in the HEAD part of the page, Waves.init fails on the line: body.addEventListener('mousedown', showEffect, false); due to document.body = null. At this point document object exists and has head but no body. Moving <script src=mdb.js... line to after the body in DOM makes this work fine.
Your working environment and MDB version information
HTML5, Windows 10, Chrome 66, MDB free version
Resources (screenshots, code snippets etc.)
For every question of technical nature, in order to get the most detailed answer as soon as possible, ask on our dedicated Support Forum