No Code Attached Yet Documentation Required
avatar Chaosxmk
Chaosxmk
23 Feb 2022

Expected result

Every file that mentions //# sourceMappingURL= should have an associated .map file as mentioned

Actual result

A couple of files that mention a .map file, don't actually have one.

System information (as much as possible)

This is all straight from Joomla 4.1

Additional comments

Missing map files:
\media\vendor\webcomponentsjs\js\webcomponents-bundle.js.map
\media\vendor\jquery-migrate\js\jquery-migrate.min.map

From what I've seen, most browsers that can't open the .map file continues working without error, but some browsers that I've been testing with have been throwing 404 errors and complaining that files can't be found.

avatar Chaosxmk Chaosxmk - open - 23 Feb 2022
avatar joomla-cms-bot joomla-cms-bot - change - 23 Feb 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 23 Feb 2022
avatar brianteeman
brianteeman - comment - 23 Feb 2022

but some browsers that I've been testing with have been throwing 404 errors and complaining that files can't be found.

And they are? or is it a secret you want to keep to yourself. Seriously if you want me to appreciate the issue and it is reproduceable then you need to give them all the required information

avatar Chaosxmk
Chaosxmk - comment - 23 Feb 2022

Oh, sorry, completely forgot that information. I noticed it in Safari 10.1.2 and Internet Explorer 11. I was going to test more browsers, but I'm having issues. I suspect it's more of an issue with older browsers that were just starting support .map files.

avatar dgrammatiko
dgrammatiko - comment - 23 Feb 2022

Couple of things here:

  • Joomla 4 by default never loads jQuery in the front end

  • even if you load it, will not load the migrate script as this is ONLY for development (so check your extensions)

  • The web components polyfill in reality will never be used as the supported browsers for J4 don't need it!

  • Joomla never had map files for the javascript files (and unless someone radically changes some APIs won't happen any time soon)

  • The reason is simple: Joomla also provides a DEBUG mode where it serves the non minified version of the script, so, unless you're doing some heavy bundling (Webpack/Rollup/etc) you don't need maps

  • The reported missing files are ONLY reported IF someone opens the browser inspector (which is the initiator for fetching this files). What I'm trying to say here is that this is not an issue.

avatar Chaosxmk
Chaosxmk - comment - 23 Feb 2022

I figured that the response would be similar to this, as it honestly doesn't actually affect anything meaningful. Just figured that since I saw it I'd report it. Feel free to close this issue if there are no plans on changing this.

avatar alikon alikon - change - 23 Feb 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-02-23 19:13:44
Closed_By alikon
avatar alikon alikon - close - 23 Feb 2022
avatar alikon
alikon - comment - 23 Feb 2022

then let's close it ;)

avatar dgrammatiko
dgrammatiko - comment - 23 Feb 2022

@alikon just a comment here, although this was rightly closed there are no docs on how/why Joomla is dealing with static files/assets. So, some time this issue might reappear, because many people are not aware of Joomla's ways of doing things. Maybe it's time to setup a git based documentation for developers (clone vue's docs?). It takes zero effort and sharing knowledge is a solid base for growth.

end of rant

avatar Quy Quy - change - 23 Feb 2022
Labels Added: Documentation Required
avatar Quy Quy - labeled - 23 Feb 2022

Add a Comment

Login with GitHub to post a comment