Bootstrap 4: how to remove modal's show.bs.modal event after first trigger-Twitter bootstrap
I'm using this code to load twitter's web intent javascript functionalities only and only if the share modal is opened: $(function(){ $('#share').on('show.bs.modal', function(e){ if(typeof(twttr) === 'undefined') { $.getScript('https://platform.twitter.com/widgets.js'); } }); }); It works great. Now, I also want to completely…