Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Does this tool load synchronously? #67

Open
wysisoft opened this issue Mar 23, 2019 · 1 comment
Open

Does this tool load synchronously? #67

wysisoft opened this issue Mar 23, 2019 · 1 comment
Labels

Comments

@wysisoft
Copy link

wysisoft commented Mar 23, 2019

console.log(1)
new Vue({
              el: "#vueDiv",
              components: {
                "property-component": window.httpVueLoader(
                  "https://something.vue" (logs 2 to console)
                )
              },
              mounted:function(){
                    console.log(3)
              }
})

will the console read 1,2,3 or 1,3,2 due to asynchronous loading?

@givingwu
Copy link

No, Asynchronously!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants