Home >Web Front-end >HTML Tutorial >Please tell me about the access (download) of js and css_html/css_WEB-ITnose
1. Generally, .js/.css on the external network cannot be accessed directly. Is this due to human control?
2. Local .js/.css can generally be accessed directly
3. What is the difference between the two?
4. Is there any way to directly download .js/.css from the external network (the idea is a bit bad)
I ===========
I don’t understand what you mean. . Most websites will not configure anti-hotlinking for js and css files. You can download and reference them at will. If anti-hotlinking is implemented, you cannot remotely reference them, but you can extract them from the browser cache folder.
Generally, it can be downloaded. If you want to reduce the file size and protect the source code, js can be encrypted and obfuscated, but css will not be encrypted. Generally, it will be ok if you compress it
Thank you both, I Zai Lili