how to load Elementor Asssets using a CDN
help needed to save my day 🙂
I have cache enabler and KeyCND installed, but some ressources of elmentor are not loaded by CDN. webpagetest.org says that a js-files used for a counter on my website which is under assets should be loaded via the CND: "Use a CDN for all static assets".
So I tried this to solve the matter and changed/hard coded:
define( 'ELEMENTOR_ASSETS_PATH', ELEMENTOR_PATH . 'assets/' );
define( 'ELEMENTOR_ASSETS_PATH', ELEMENTOR_PATH . 'https://cdn.domain/etc/etc2/assets/' );
but this does not work. Interesting enough, the ressource can be reached over the cdn-path if I put the absolute path into the browser.
thanks for making my day bright!