Get started with headjs CDN

MIT licensed

Head.js is a lightweight, asynchronous library for loading and managing head scripts.

Tags:
  • loader
  • polyfill
  • html5
  • css3

Stable version

Copied!

How to start using headjs CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with headjs CDN - cdnhub.io</title>
  <script src="https://cdn.cdnhub.io/headjs/1.0.3/head.min.js"></script>
  <script>
    // Use Head.js to manipulate the document head
    head.load({
      url: 'https://code.jquery.com/jquery-3.6.0.min.js',
      css: [
        'https://stack.bootstrapcdn.com/bootstrap/5.1.3/css/bootstrap.min.css',
        'https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap'
      ],
      script: [
        'https://code.jquery.com/jquery-3.6.0.min.js',
        'https://stack.bootstrapcdn.com/bootstrap/5.1.3/js/bootstrap.min.js'
      ]
    });
  </script>
</head>
<body>
  <!-- Your HTML content goes here -->
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!

All versions