Topic: Embedded Javascript disappears a few seconds after load... some browsers & mobile
Expected behavior
On page load, embedded third party javascript loads correctly/as expected and the entire embedded app is functional (this occurs in firefox desktop browser)
Actual behavior
On page load, embedded third party javascript appears to load correctly (this occurs on in edge desktop browser & on android chrome mobile browser)
Approximately 4 seconds after the third party javascript loads, it disappears. (this occurs in the edge desktop browser & on android chrome mobile browser)
Resources (screenshots, code snippets etc.)
OnGrade.io Link
<!--/.Footer--><!-- SCRIPTS --><!-- JQuery --><script type="text/javascript" src="js/jquery-3.4.1.min.js"></script><!-- Bootstrap tooltips --><script type="text/javascript" src="js/popper.min.js"></script><!-- Bootstrap core JavaScript --><script type="text/javascript" src="js/bootstrap.min.js"></script><!-- MDB core JavaScript --><script type="text/javascript" src="js/mdb.min.js"></script><!-- Initializations --><script type="text/javascript">
// Animations initialization
new WOW().init( {mobile: false, });
Embedded third party java replaced the "main" section of the template html file. Footer scripts were not modified from the 4.8.8 free template. I've tried turning off the animation on mobile, but that did not address the issue. Note the 'loading' animation is visible before, but not after the embedded script disappears.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Open
- User: Free
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.8.8
- Device: Desktop / Mobile Phone
- Browser: Firefox / Edge / Chrome (mobile)
- OS: Windows 10 / Android
- Provided sample code: No
- Provided link: Yes
MDBootstrap staff pro premium priority commented 5 years ago
Hi, try wrapping wow init function inside the document ready event. I am not sure why this example works like that. If this simple solution doesn't fix it I will further test your code and find a more complex solution.