-
-
- Submit Updated Articles to Bing and Yandex with IndexNow in Joomla
- Add Published and Modified Date Meta Tags to Joomla
- Add Open Graph and Twitter Card Tags to Joomla
- Auto-Generate Meta Descriptions from Article Text in Joomla
- Add Noindex to Specific Pages in Joomla
- Verify Your Joomla Site with Google Search Console
-
- Add a View as Markdown Link to Joomla Articles
- Display the Last Modified Date in Joomla Articles
- Embed Iframes in Joomla
- Automatically Link Twitter (X) @mentions in Joomla Articles
- Open External Links in a New Tab in Joomla
- Display Estimated Reading Time in Joomla Articles
- Replace Old URLs in Joomla
- Search and Replace in Joomla
-
- Add a Footer Line to the Joomla Administrator
- Show a Staging Banner in the Joomla Administrator
- Remove the "All" Option from Admin List Limits in Joomla
- Add a Cookie Consent Banner to Joomla
- Make the Administrator Navigation Sticky in Joomla
- Add Google Fonts to Joomla
- Add a Facebook Messenger Chat Button to Joomla
- Add a Reading Progress Bar to Joomla
- Add a Custom Scrollbar to Joomla
- Show Confetti on a Thank You Page in Joomla
- Add Smooth Scrolling to Joomla
- Add a Back to Top Button in Joomla
- Add a WhatsApp Chat Button in Joomla
-
- Protect the Administrator with a Secret URL Key in Joomla
- Show a Welcome Message on First Login in Joomla
- Log Out Idle Administrators in Joomla
- Assign New Users to a Different User Group Automatically in Joomla
- Redirect Visitors by Country in Joomla
- Redirect Users After Login by User Group in Joomla
- Block User Registration with Certain Usernames in Joomla
- Block User Registration by Country in Joomla
- Block User Registration by Email Address in Joomla
- Block User Registration by IP Address in Joomla
- Remove the Forgot Password and Username Links in Joomla
- Remove the Generator Meta Tag in Joomla
- Let Users Log In with Their Email Address in Joomla
- Block Traffic by Country in Joomla
- Block Bot Traffic in Joomla
- Block Traffic by IP Address in Joomla
JavaScript External Files
Link to external JavaScript libraries and files hosted on CDNs or your server.
JS External File snippets load JavaScript libraries or scripts from a remote URL, with support for defer and async loading attributes. This type is best when you need to include a third-party library from a CDN — such as jQuery, a jQuery plugin, a charting library, a heatmap tool, or any hosted script — without embedding the code directly into your snippet.
How to Create a JavaScript External Files Snippet
To learn how to load external JavaScript files in Joomla, follow the steps below:
- Log into your Joomla administrator
- Go to Components → Tassos Code Snippets
- Click New
- Enter a descriptive Title (e.g. "Load jQuery from CDN")
- Select JavaScript External File as the Code Type.
- Choose one of the following insertion locations
- Site Header
- Site Footer
- Admin Header
- Admin Footer
- Enter the URL or relative paths of the JavaScript files you want to load, one per line. Do not write any JavaScript or HTML in the editor, only plain URLs. The extension will create a
<script>tag for each URL and inject it at the chosen location.- To load an external file, start with
https://orhttp://(e.g.https://cdn.example.com/library.js) - To load local files on your server, write the path without a leading slash (e.g.
templates/mytemplate/js/library.js)
- To load an external file, start with
- In the Script Loading option select how the scripts should be loaded.
- Defer delays execution until the page is parsed.
- Async loads the script asynchronously.
- Open the Conditional Logic tab to restrict which pages or users the snippet runs on. Leave it empty to run it site-wide. Learn more in Using Snippet Logic.
- Set Status to Published and click Save & Close.
Troubleshooting
Script Not Loading
- Check URL: Verify the URL is correct and accessible
- Check HTTPS: Ensure using HTTPS, not HTTP
- Check console: Look for errors in browser console (F12)
- CORS issues: Some scripts require
crossoriginattribute - CDN availability: Verify CDN is operational
Script Loading But Not Working
- Load order: Ensure dependencies load first (check priorities)
- Timing: Script may need
deferor different location - Conflicts: Check for JavaScript conflicts in console
- Initialization: Some libraries require initialization code
Slow Page Load
- Defer loading: Use
deferorasyncattributes - Location: Move scripts to Footer
- Minimize requests: Reduce number of external files
- Use faster CDN: Switch to more reliable CDN
Last updated on Oct 15th 2026 12:10