@farterazvan my sincere apologies for this late reply! I’ve installed Elementor and did a few tests. Asset CleanUp does not support handling CSS/JS for Elementor templates. Now, if you go to /?elementor_library=maintenance-mode (just an example), it will list the CSS/JS (if “Manage in the front-end” is enabled in Asset CleanUp) and you can manage what loads or not, but when the actual page loads for the visitors, due to the way Elementor loads it, it will not apply the changes from the template. It is a custom post type, but it has to be loaded in a different way, due to the fact that it’s a template (saved as a custom post type in WordPress) associated with an actual page (in this case the homepage loads that template).
So, what I would need to do (I had this request before) is do some changes to Asset CleanUp that will work smoothly with Elementor, allowing the CSS/JS to be managed properly. As many people use Elementor and they often put their websites in maintenance mode, it would be a great thing to add as these kinds of pages are usually very light and you can strip so much CSS/JS that is not needed there. And no, the PRO version doesn’t have this support either. It will be added for both LITE and PRO very soon.
I’ll keep you updated when this compatibility change will be applied to the plugin 😉
Thanks a lot for reaching me. I am still willing to use Asset CleanUp for this project and for future projects. I am interested about this functionality. I’ll keep an eye on the project. Let me know if I can help.
For the moment, as I have the site in mantainance mode I deactivated all other plugins besited Elementor and Elementor PRO. Still some resources I don’t need are loaded. I got 10 users today on the site and 270 requests hit my site. Some are just unecessary. It’s not a lot as for now. But in some way, I could say it is a lot, for a page that does nothing but displays an image and some text.
Really glad you considered this. Yeah, I also think this is a custom post type from Elementor, although I couldn’t really see it listed when checking with Asset Cleanup. I don’t think it’s a wordpress custom post type, didn’t see it registered anywhere else. Not even in elementor’s settings, where I could specify which custom post types I can edit with elementor. Although it could be a “Template” from Elementor Templates menu. I remember I saw the coming soon page template displayed there. It would be a nice thing for AssetCleanup to support Templates.
Thanks a lot for the involvement and for the support. Amazing product! Really glad I found about it.
UPDATE: The development version of Asset CleanUp has been updated with a change to allow you to unload CSS/JS files if Elementor’s maintenance / coming soon mode is enabled. This compatibility is in beta mode and it will be polished in a future release. For now, because you and other Elementor users might need it sooner, here’s how you can use it:
1) Replace the current version of Asset CleanUp that you have with the development version: https://assetcleanup.com/docs/how-to-get-the-development-version-of-asset-cleanup/
2) Enable “Manage in the Front-end” within “Settings” -> “Plugin Usage Preferences”
3) Access the homepage appending /?elementor_library=maintenance-mode or /?elementor_library=coming-soon which will load the Maintenance / Coming Soon page. It should be mentioned there at the beginning of the list: “elementor_library post type“. Do the changes you need and they will be applied. It’s been working fine on all my tests.
Let me know if you decide to give it a go! I’d be glad if it works out!