## how to load Elementor Asssets using a CDN

Question

Ciao Community

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/' );

into

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!

0
1 year 2021-08-10T10:32:27-05:00 0 Answers 0 views 0