Is there any point to use absoulte url for asset files like css/js

by sweb   Last Updated October 07, 2019 18:04 PM - source

Should i use absolute path for css or js link for <link and <script tags?

Is there any reason. Some SEO optimization say fix it, should i for any reason?

I dont know why? if everything work file.

<link rel="stylesheet" href="/css/main_rtl.css?v=5e6e47e9">
<script src="/lib/js/frameworks.min.js?v=5e6e47e9"></script>

Vs

<link rel="stylesheet" href="https://sample.com/css/main_rtl.css?v=5e6e47e9">
<script src="https://sample.com/lib/js/frameworks.min.js?v=5e6e47e9"></script>

Is any seo point.

Shorter version is smaller html at least.



Related Questions


Absolute vs Relative url

Updated May 12, 2016 08:01 AM

Schemaless URLs in canonical tags

Updated July 25, 2016 08:01 AM

.htaccess rewrite URL leads to missing CSS

Updated March 29, 2017 18:04 PM


Is it bad to link internal URL with http?

Updated April 21, 2016 08:01 AM