Load Script Async? June 07, 2022 Post a Comment EDIT: I want to save input data from my form into Firebase database The input with id='field0' and button with onClick'submitPost()' Solution 1: Try this, by using the load event of the script tag: https://jsfiddle.net/7mnns4dk/6/ Basically just use: script.load = function() { // enter code that needs the script to be loaded here } Copy Also it works with jQuery as you wrote it, just move the submitPost function so that it is accessible by the button: https://jsfiddle.net/7mnns4dk/7/Baca JugaJquery Incrementing A Cloned Elements Instead Of Cloned DivHow Do I Resolve A 'mime Type Mismatch Error' Blocking An Ajax-requested Resource From My Google Apps Script?Why Does A Settimeout Delay Of 0 Still Run After All Other Synchronous Code In A For Loop? Share You may like these postsHow Should I Loop Through Asynchronous Functions That Rely On The Previous Loop's Value?Onchange Is One Character On Delay - HooksJavascript Fetch Api - Why Does Response.json() Return A Promise Object (instead Of Json)?How To Return The Response From An Asynchronous Call Post a Comment for "Load Script Async?"
Post a Comment for "Load Script Async?"