Do not use CDN URLs – Successful Item Approval on CodeCanyon

Do not Use CDN URL

Welcome to the first post of the series on, How to Successfully Approve a Product on CodeCanyonIn this post, we are going to discuss the first primary thing that Envato Review Team checks in your Code.

This is the major mistake that a lot of new Authors make. A lot of our third-party dependency files are loaded via CDN. Like,

  • bootstrap
  • jquery
  • momentjs
  • data-tables

These are loaded like,

				
					<html lang="en">
<head>
...
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
... <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" defer data-deferred="1"></script> <script src="https://code.jquery.com/jquery-3.6.1.min.js" defer data-deferred="1"></script> <script data-optimized="1" src="https://authordesk.app/wp-content/litespeed/js/bb753ca1922dab8f83c2582c9f5c8c8e.js?ver=6573e" defer></script></body>
</html>
				
			

Instead of this, you need to download these all files and put them along with your project files. Then include them directly from the folder.

				
					<html lang="en">
<head>
...
<link href="/css/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
... <script src="/js/bootstrap.bundle.min.js" defer data-deferred="1"></script> <script src="/js/jquery-3.6.1.min.js" defer data-deferred="1"></script> <script data-optimized="1" src="https://authordesk.app/wp-content/litespeed/js/bb753ca1922dab8f83c2582c9f5c8c8e.js?ver=6573e" defer></script></body>
</html>
				
			

This is a very small change but a lot of authors miss this and the item gets soft-rejected. We hope this will help you to save some rejections.

Please note:

Sometimes, Envato Review Team also reject the items when they found CDN URLs in third-party dependency codes. If it gets rejected, you need to explain to them that, it is a third-party library and not a part of your original script.

Powered by