Comments (8)
My thoughts are this could confuse new web developers. Explaining protocol relative URLs to a new web developer is non-trivial.
If you want protocol relative URLs you can omit the http://
yourself. My preference is to cater to the lowest common denominator.
It's a good suggestion for web development in general, but I think the cons outweigh the pros in this particular case.
from cdnjs.
I feel that most devs will just copy and paste, so omitting the protocol is not a bad idea.
Your concern about new/learning devs is a good one, but since many learn by watching what seasoned developers write and do, this is a good opportunity to spread the word. Perhaps omitting protocol, but having a icon/link next to it on the web page that can point to a concise explanation of why we use protocol relative src attributes.
from cdnjs.
Agree with @morganestes : This is especially important when you consider the slow but steady move towards HSTS (hopefully). Protocol relative is preferable when you have a mix of SSL/non-SSL pages. I'm probably preaching to the choir here about protocol-relative but the concept is catching on and this could further it.
from cdnjs.
new web developers SHOULD understand this or drop the business and go learn to make pasta instead...
I vote for protocol-less URL paths.
from cdnjs.
@fifunja I'm not sure how new developers would know about protocol-less URLs without being taught, which is why I suggest educating them with a "What's this?" icon or blurb, instead of just forcing down their collective throats.
Besides, pasta is trickier than Web development at times!
from cdnjs.
Perhaps we could a set of buttons like:
http | https | protocol-relative
Defaulting to http but giving advanced developers other options
from cdnjs.
+1
Filip OŠČÁDAL mobile
On Aug 14, 2012 1:23 AM, "Ryan Kirkman" [email protected] wrote:
Perhaps we could a set of buttons like:
http | https | protocol-relative
Defaulting to http but giving advanced developers other options
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/306#issuecomment-7711653.
from cdnjs.
Removed the protocol and put a note in. Thanks guys!
from cdnjs.
Related Issues (20)
- Refused to load the script 'https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.js' HOT 1
- I don't understand HOT 1
- amis库缺少必要的文件 HOT 1
- git-sync is failing HOT 11
- Sponsoring your project HOT 6
- how to add files to cdnjs, or some aplication like cdns can upload javascript file HOT 1
- Fonts from "primevue" library not in the cdnjs distribution HOT 4
- Some versions of devextreme are missed HOT 9
- Loading Files Issue (Egypt) HOT 2
- Sponsoring HOT 1
- DevExtreme 23.1.3: missing *.js files HOT 1
- SRI hashes changed on multiple libraries yesterday and some SRI hashes are wrong HOT 30
- https://cdnjs.cloudflare.com/ajax/libs/moment-timezone/0.5.34/moment-timezone-with-data.min.js 404 / missing HOT 9
- Some versions of hexo-theme-anzhiyu are missing HOT 3
- SRI hash for moment.js/2.29.4 does not match HOT 3
- cd pentmenu
- How to set the Video Autoplay? HOT 1
- Advertising HOT 2
- cdnjsdl HOT 2
- CDN公共库 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cdnjs.