matheusmurta
10/8/2019 - 12:48 PM

Wait Jquery Load

Wait Jquery Load

<style>
/* Utilize esse template para adicionar novas tags que precisam de utilizar o Jquery */
/* Meu Estilo CSS */
</style>

<script>
  /* Meu código JS */

    function showContent() {

     $(document).ready(function() {

       $(".minha_div").html("conteudo_da_div");

     });
    }

    function defer(method) {    
        if (window.jQuery) {
            method();
        } else
            setTimeout(function() {
                defer(method)
            }, 100);
    }

    defer(showContent);
</script>