Ecommerce Shopify WordPress Discussion

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?
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.