Skip to content
Public Ticket #11438

.js files? Deploy Mode

Conversation thread

Penci Design replied

Staff Reply

Hi,

If you  set "PENCI_DEPLOY_MODE" is true, PenNews theme will load list individual  js file  ( TweenMax.min.js, jquery.inview.min.js ,... )

if  you want edit theme, i recommend you use child theme of PenNews theme

Best Regards,

PenciDesign

aaronknoll replied

Customer Reply

If I set deploy mode to false (or to dev), would I somehow be able to obtain all the original individual javascript files referenced there (and that are not part of the theme's bundle?)

Penci Design replied

Staff Reply

Hi,

Please add  to wp-config.php file as screenshot  https://prnt.sc/rd6r9x

define( 'PENCI_DEPLOY_MODE', true );

Best Regards,

PenciDesign

aaronknoll started the conversation

Conversation Start

Love the theme—

But I'm working to customize and optimize the performance, because there's many features you make available but I don't use. Question, why aren't the partial .js files bundled with the theme? I see an option to enable Deploy Mode in the .php files; however, those individual files are not available. Specifically I'm speaking of media.php and it includes (but is not limited to ) the files referenced here: 

wp_enqueue_script( 'TweenMax', get_template_directory_uri() . '/js/TweenMax.min.js', array( 'jquery' ), time(), true );
wp_enqueue_script( 'wow', get_template_directory_uri() . '/js/wow.min.js', array( 'jquery' ), time(), true );
wp_enqueue_script( 'owl.carousel', get_template_directory_uri() . '/js/owl.carousel.min.js', array( 'jquery' ), time(), true );
wp_enqueue_script( 'flexmenu', get_template_directory_uri() . '/js/flexmenu.min.js', array( 'jquery' ), time(), true );
wp_enqueue_script( 'inview', get_template_directory_uri() . '/js/jquery.inview.min.js', array( 'jquery' ), time(), true );

Is there any chance that purchasers of the theme can get access to the files in deployment mode?

Thanks,

Aaron 

Want to join this conversation or access attachments? Sign in first.