I would like to remove js file on frontend side from the [magento_root_direcotry]libwebjqueryui-modulessortable.js
path
I tried to remove JS file by below code but no luck
I tried to remove js code in following path /app/design/frontend/Smartwave/porto_child/Magento_Theme/layout/default_head_blocks.xml
Here is the code which I put in 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>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"/>
<remove src="lib::jquery/ui-modules/sortable.js" />
</head>
</page>
After the put above code I ran setup:upgrade
and pub static command command and flush the cache but still loading that sortable js file in network tab,I also checked in incognito mode.