I am trying to remove some js files from Magento 2 upload in the frontend.
This is my code but it doesn't work because when reload category page and i open sources->coverage of chrome i see ever all js files loaded from browser:
app/design/frontend/Parent/CustomTheme/Magento_Theme/layout/default_head_blocks.xml
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<remove src="datepicker.js"/>
<remove src="timepicker.js"/>
</head>
</page>
Thanks for any help