Jaxel
Well-known member
I have a page, and in this page, has a macro calling this:
This is actually loading fine when I call the page by itself.
But if I put this page in a
Why would this work if loaded normally, but not work if loaded dynamically?
Code:
<xf:macro name="firebase">
<script>
const firebaseId = "{$xf.options.firebase_id}";
</script>
<xf:js src="https://www.gstatic.com/firebasejs/5.9.2/firebase-app.js" />
<xf:js src="https://www.gstatic.com/firebasejs/5.9.2/firebase-firestore.js" />
<xf:js src="firebase.js" />
</xf:macro>
But if I put this page in a
.js-pageTabPanes
loader, I get this error when the page loads:
Code:
Uncaught ReferenceError: firebaseId is not defined
at firebase.js?_v=55049e58:5
at firebase.js?_v=55049e58:81
Why would this work if loaded normally, but not work if loaded dynamically?