run js function after all scripts on page are fully loaded
问题 I am trying to run a simple javascript function when my page is completely loaded. For example, this function: <script type="text/javascript"> function changeSize() { var el = document.getElementById("my-id"); el.style.height = "500px"; }; </script> My page has a long-loading (seconds) script retrieved from an external URL that renders the main content in the html body. I am using Bootstrap where the body section of my base.html is: <body> <div class="container-fluid"> {% block header %}{%