I am dynamically adding a script of a github gist. If I added it to the html before the page loads, the script will execute. But If I try to add it to the page after it load
Try $(this).append(script) or $(this).html(script)