#1441 Posted in ‘CommentBox’

Latest post by Lefteris Kavadas on Tuesday, 04 November 2025 12:40 EET

shenkesh s
Your codes in the description prevented me from responding.
I want Joomla JavaScript files, especially commentbox.min, to be executed with delay in the head to get the highest google speed score.
The size of the commentbox.min file is large and a warning is given.
Fetchpriority="low" is also not applicable on it.
If I remove jdoc:include type="scripts" and load the files directly in the head, will it change the Joomla process or not.
So that I can add fetchpriority="low" or delay it with a java code.
Please add this ticket to the previous one and delete this

Lefteris Kavadas

Thank you for your message.

I would strongly advise not removing jdoc:include type="scripts" from your template. This is a core Joomla mechanism responsible for loading scripts across the system, and removing it will very likely break other extensions or essential Joomla functionality.

Regarding commentbox.min.js: although the file size is noticeable, it is delivered as an ES module, which means it is automatically deferred and therefore does not block rendering of your page. For this reason, applying fetchpriority="low" or relocating the script is not necessary in most cases.

At this time, I recommend keeping the default loading behavior to ensure optimal system stability and compatibility. That said, I can consider introducing an optional lazy-loading mode in a future version — so that the CommentBox script loads only when the visitor scrolls into the comments area. This could further improve perceived loading performance for pages where comments appear lower on the screen.

Please let me know if you have any further questions or suggestions.

Note: An active subscription is required in order to get support for our paid extensions. For our free extensions, if you don't have an account, register and then submit your support request.  In case you just want to ask a question, you can also use the contact form .

Firecoders
Are you using our extensions? Please post a review at the Joomla extensions directory!
Post a review