The “When to load” functionality in the InputWP plugin allows you to define when the shortcode [datetimepickerpro]
should trigger the loading of the date and time picker script on your website. This feature provides you with control over when the script is loaded, ensuring optimal performance and efficient resource utilization.
How to use
- Accessing the Feature:
- Log in to your WordPress admin panel.
- Navigate to “InputWP” in the left-hand menu.
- Click on “Settings.”
- Go to the “General” section.
- Selecting Load Timing: On the “General” settings page, you will find a select input field that allows you to choose when the script should load.
- Available Options: Choose one option from the following list:
- “Across the full website”: Load the script on all pages of the website.
- “Admin panel only”: Load the script only on the WordPress admin panel.
- “Full website including admin panel”: Load the script on both the website and the admin panel.
- “Only when shortcode [datetimepickerpro] exists on a page”: Load the script only when the
[datetimepickerpro]
shortcode is present on a page.
- Available Options: Choose one option from the following list:
- Saving Changes: After selecting the desired load timing, click on the “Save” button to save the changes you’ve made, including the load timing selection.
Benefits of Choosing Load Timing
- Optimized Performance: By choosing when the script loads, you can optimize the loading process and ensure that resources are utilized efficiently.
- Reduced Unnecessary Loading: Loading the script only when the shortcode is present or on specific sections helps prevent unnecessary script loading across all pages.
Using the “When to load” feature, you can determine the most suitable timing for loading the date and time picker script, aligning with your website’s requirements.