Is your feature request related to a problem? Please describe.
OK. So this might be simple but:
I don't need (and frankly don't want) to load +250kb jquery UI in the front office as my theme (a modified Classic) doesn't use it. How do I remove it without altering core code?
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Ok, to answer my own question, it seems that I actually need one componetnt of jQuery UI, the "autocomplete" component to be exact, required by the search bar module. So, if anyone else is wondering if you can switch 250kb of js for 35kb - you can. To do so:
themes/YOUR_THEME/js/jquery/ui/
with the name jquery-ui.min.js
, so the final path is themes/YOUR_THEME/js/jquery/ui/jquery-ui.min.js
themes/YOUR_THEME/js/jquery/ui/base/minified/jquery-ui.min.css
and themes/YOUR_THEME/js/jquery/ui/base/minified/jquery.ui.theme.min.css
. Or maybe there is a better way, let me know.
Most helpful comment
Ok, to answer my own question, it seems that I actually need one componetnt of jQuery UI, the "autocomplete" component to be exact, required by the search bar module. So, if anyone else is wondering if you can switch 250kb of js for 35kb - you can. To do so:
themes/YOUR_THEME/js/jquery/ui/
with the namejquery-ui.min.js
, so the final path isthemes/YOUR_THEME/js/jquery/ui/jquery-ui.min.js
themes/YOUR_THEME/js/jquery/ui/base/minified/jquery-ui.min.css
andthemes/YOUR_THEME/js/jquery/ui/base/minified/jquery.ui.theme.min.css
. Or maybe there is a better way, let me know.