Server: 10:50 AM
Reset: 12:00 AM
459
36626
83.72
  johnny Admin Pioneer Moderator
Male Avatar
Received: $5.31
Balance: $5.160
Referrals: 16
Posts: 90
Member Since: 04-27-2018
PM User
Achievements Completed
1 Cashout 10 Direct Referrals Valued Advertiser

let's say you're trying to replicate a pen from codepen for which you have to load 3 script files from CDN and one from the server.
Example



Solution
In your
functions.php
, using
wp_register_script() 
and
wp_enqueue_script() 


the it should look like this :


wp_register_script( 'jQuery', 'https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js', null, null, true );
wp_enqueue_script('jQuery ');
wp_register_script( 'TweenMax', 'https://cdnjs.cloudflare.com/ajax/libs/gsap/1.18.2/TweenMax.min.js', null, null, true );
wp_enqueue_script('TweenM ax');
wp_register_script( 'Slick', 'https://cdn.jsdelivr.net/jquery.slick/1.5.9/slick.min.js', null, null, true );
wp_enqueue_script('Slick' );


Jan 7th 2019 at 1:56 PM
Options
  johnny Admin Pioneer Moderator
Male Avatar

this should be added in the functions.php file
 

Jan 12th 2019 at 5:43 PM
Options
Page 1 of 11