Manual:$wgResourceLoaderMaxQueryLength

Details
Maximum query string length for resource loader requests.

If set to a positive number, ResourceLoader will not generate URLs whose query string is more than this many characters long, and will instead use multiple requests with shorter query strings.

This degrades performance, but may be needed if your web server has a low - less than let's say 1024 - query string length limit or a low value for suhosin>Special:MyLanguage/Manual:Suhosin (Hardened-PHP Project patch and extension)|suhosin.get.max_value_length that you can't increase.

Prior to 1.34.0, if set to a negative number, ResourceLoader would assume there is no query string length limit.

When installing MediaWiki, the installer will automatically detect an appropriate value for this setting, and set it in the automatically generated   file.