Using this feature you can have MEC’s assets under control. For example, if you do not use MEC shortcodes in the Contact Us page, you can enable this feature to prevent the CSS and JS files from being loaded on that page.
How to Use Assets Per Page Option on Modern Events Calendar?
Go to MEC Settings > Assets Per Page and enable the check box.
This feature is automatically enabled in the pages that MEC creates by default, for example MEC Single Event Page, Category Archive Page, and Main Archive Page.But if you have put a shortcode in a specific page in your website, you need to go to the page settings in WordPress dashboard.
Look for the Include MEC Assets option. If you cannot find it, go to Screen Options (Classic Editor) or Options > Performances (Gutenberg Editor). You can enable it from there.
By checking the box, the MEC assets will be loaded on that specific page.
Classic Editor
Gutenberg Editor
Following this procedure, you can determine where the assets should be loaded. This can help you increase the load speed of your website.
No Comment.