Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Embedded Javascript disappears a few seconds after load... some browsers & mobile

bobmcgurk free asked 5 years ago


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) Firefox Desktop 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) Edge Desktop & Chrome Mobile
Approximately 4 seconds after the third party javascript loads, it disappears. (this occurs in the edge desktop browser & on android chrome mobile browser) Edge Desktop & Chrome Mobile 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.


MDBootstrap staff 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.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Opened

Specification of the issue

  • ForumUser: 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