No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. altenirgama
    A
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 3
    • Best 1
    • Groups 0

    altenirgama

    @altenirgama

    1
    Reputation
    82
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    altenirgama Follow

    Best posts made by altenirgama

    • RE: How to add external scripts?
      <script>
      
      // ##############################################
      // função loadScript para carregar script externo
      // Lazy Loading Scripts
      // ##############################################
      function loadScript (url, classe) {
        let isLoaded = document.querySelectorAll(classe)
        // verifica se o script já foi caregado
        if (isLoaded.length > 0) {
          // não faz nada...
        } else {
          let myScript = document.createElement('script')
          myScript.src = url
          myScript.className = classe
          document.body.appendChild(myScript)
        }
      }
      
      loadScript('statics/directpayment.js', 'insert-script')
      // ##############################################
      
      export default {
      ...
      
      posted in Help
      A
      altenirgama

    Latest posts made by altenirgama

    • RE: How to add external scripts?

      @dobbel just to know if the script has already been loaded and not to load again by duplicating, can give another name

      posted in Help
      A
      altenirgama
    • RE: How to add external scripts?
      <script>
      
      // ##############################################
      // função loadScript para carregar script externo
      // Lazy Loading Scripts
      // ##############################################
      function loadScript (url, classe) {
        let isLoaded = document.querySelectorAll(classe)
        // verifica se o script já foi caregado
        if (isLoaded.length > 0) {
          // não faz nada...
        } else {
          let myScript = document.createElement('script')
          myScript.src = url
          myScript.className = classe
          document.body.appendChild(myScript)
        }
      }
      
      loadScript('statics/directpayment.js', 'insert-script')
      // ##############################################
      
      export default {
      ...
      
      posted in Help
      A
      altenirgama