Best way to load stylesheets, scripts and CDN (external files) in functions.php?

Question

I am looking for the best way to load stylesheets, scripts and external files (also stylesheets, fonts, scripts) and CDN from different parties. Such as jQuery.

I’ve seen multiple ways to do this, but now I’m curious what the best way is.

Can someone provide me with an example, what the best way is? Can you please include it with the following: Stylesheets, scripts, external stylesheets and scripts, the jQuery CDN (maybe also another CDN) and a font from Google fonts.

Thank you in advance!

0
, , Thomas Tromp 2 years 2019-11-29T06:08:22-05:00 0 Answers 50 views 0

Leave an answer

Browse
Browse