*** APOLOGIES FOR THIS LONG NOTE. A CUP OF COFFEE AND SEVERAL DOUGHNUTS WILL HELP ***
Good Day!
Recently, we noticed our website loading speed increased as soon as Gravity Forms 2.7 was installed on our website.
Upon reviewing its file structure, we were unpleasantly surprised about the size of some of the added JS and CSS files (see below). Major impact to our website is being cause by the JS file gform_simplebar and the CSS files theme_foundation, theme_framework, and gform_theme.
Based on our finding, we need help with the following:
(1) Please provide an explanation for each file. What is their main function? Where can we find this info?
(2) Which files can we dequeue without impacting the basic functionality of Gravity Forms?
(3) If we do not use WooCommerce or are not capturing and monitoring sales data, do we still need the file gform_simplebar and all of its dependent JS and CSS files? If we do use WooCommerce or are capturing and monitoring sales data, is it safe to only enqueue this file in the backend?
(4) What would be the impact of dequeuing the CSS file theme_framework? Our testing is revealing mixed results. For example, when this file is dequeued, the styling of some of our confirmation messages breaks.
(5) Some of our Gravity Forms exist in the form of a modal (pop-up). Can you provide a code snippet that will help us defer (or delay) the triggering of all Gravity Forms’ JS and CSS until the appropriate button that triggers the modal is pressed?
(6) We noticed Gravity Forms Changelog has not yet been updated to reflect Gravity Forms 2.7. Can you guys kindly update it this week? Would be helpful.
Thank you.
Jonathan
Gravity Forms 2.7 Files:
Data Handle | JS File | Payload:
gform_chosen [/wp-content/plugins/gravityforms/js/chosen.jquery.min.js] 28.4 KB
gform_json [/wp-content/plugins/gravityforms/js/jquery.json.min.js] 1.8 KB
gform_gravityforms [/wp-content/plugins/gravityforms/js/gravityforms.min.js] 45 KB gform_gravityforms_utils [/wp-content/plugins/gravityforms/assets/js/dist/utils.min.js] 39.8 KB
gform_placeholder [/wp-content/plugins/gravityforms/js/placeholders.jquery.min.js] 4.5 KB
gform_gravityforms_theme_vendors [/wp-content/plugins/gravityforms/assets/js/dist/vendor-theme.min.js] 14.9 KB
gform_gravityforms_theme [/wp-content/plugins/gravityforms/assets/js/dist/scripts-theme.min.js] 3.9 KB
gform_simplebar [/wp-content/uploads/gform_simplebar.min.js] 58.1 KB
Data Handle | CSS File | Payload:
gravity_forms_theme_reset [/wp-content/plugins/gravityforms/assets/css/dist/gravity-forms-theme-reset.min.css] 1.6 KB
gravity_forms_theme_foundation [/wp-content/plugins/gravityforms/assets/css/dist/gravity-forms-theme-foundation.min.css] 44.1 KB
gravity_forms_theme_framework [/wp-content/plugins/gravityforms/assets/css/dist/gravity-forms-theme-framework.min.css] 224.5 KB
gravity_forms_orbital_theme [/wp-content/plugins/gravityforms/assets/css/dist/gravity-forms-orbital-theme.min.css] 0 KB
gform_basic [/wp-content/plugins/gravityforms/assets/css/dist/basic.min.css] 47.5 KB
gform_theme_components [/wp-content/plugins/gravityforms/assets/css/dist/theme-components.min.css] 0 KB
gform_theme_ie11 [/wp-content/plugins/gravityforms/assets/css/dist/theme-ie11.min.css] 1.7 KB
gform_theme [/wp-content/plugins/gravityforms/assets/css/dist/theme.min.css] 29.4 KB