Tony's Blog

How To Add External Css And JS in Magento2

Add External Css In Magento2

  1. <head>
  2. <css src="http://externalcss/external.css" src_type="url"/>
  3. </head>

Add External Js In Magento2

  1. <head>
  2. <script src="http://externaljs/external.js" src_type="url"/>
  3. </head>

It works for me:

Eg:
Tony's blog image

Tony's blog image