Whats the proper way to enqueue style and script follow the envato requirements?
Whats the proper way to enqueue style and script follow the envato requirements?
I add my style and script like below on my theme:
wp_enqueue_style( 'lightbox', get_template_directory_uri() . '/assets/lightbox/css/lightbox.min.css', '', '', 'all');
wp_enqueue_script( 'lightbox', get_stylesheet_directory_uri() . '/assets/lightbox/js/lightbox.min.js', array('jquery'), '', true );
but envato requirements is: If a CDN version of a library is included (only allowed if not shipped with WordPress), a local copy must be provided as a fallback.
now how to enqueue style and script follow the envato requirements?
Turbo Multi-language Translator
Make the better internet purchasing globaly
Turbosify SEO Speed Booster
5.0 (7)•Free plan available
Get better conversions by improving store loading speed
Installed
Turbo Multi-language Chat - AI Customer service in one hand