[RSS Feed/News] Any performance advantages of loading external javascript this way?

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
So uhm, while browsing some add-ons I installed, I found this code in one of its templates:
<xf:js>
<script async defer
src="https://example.com/script.js">
</script>
</xf:js>
Click to expand...

I thought it was wrong at first, as I couldn't find any documentation related to it. All these years, if I had an external javascript file to include, I just used to do:

<script async defer src="https://example.com/script.js">
</script>
Click to expand...

Or

...
Click to expand...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom