Wordpress plugin optimization

Everything related to your website and the Beds24 widgets
Post Reply
zbyneksmetana
Posts: 7
Joined: Sun Sep 17, 2017 11:12 pm

I try to "speedup" wordpress website. From google pagespeed i have info

"Decrease the JavaScript resource file to reduce the size of the file by 46.2 KB (38%).
The reduction of https://code.jquery.com/ui/1.12.1/jquery-ui.js has reduced the size by 46.2 KB (38%) after compression.
"

is it posible to reduce "jquery-ui" from your plugin .... for example after change to "jquery-ui.min" ? If its posible then how to do it ?
Thanks
Zbynek

PS sorry for language mistakes
markkinchin
Site Admin
Posts: 935
Joined: Fri Mar 02, 2012 1:43 pm

The beds24 wordpress plugin only needs the datepicker plugin from jquery-ui and only if you are using datepickers.

If not needed you can comment it out so it does not load, the line is as follows in beds24-online-booking.php

wp_enqueue_script('jquery-ui-datepicker');

perhaps something else in your wordpress is loading the full jquery-ui
zbyneksmetana
Posts: 7
Joined: Sun Sep 17, 2017 11:12 pm

Unfortunately i have widget "check in/check out" with calendar.
Thanks
Post Reply