Giter VIP home page Giter VIP logo

Comments (8)

ryankirkman avatar ryankirkman commented on May 6, 2024

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.

morganestes avatar morganestes commented on May 6, 2024

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.

contentfree avatar contentfree commented on May 6, 2024

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.

mxdpeep avatar mxdpeep commented on May 6, 2024

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.

morganestes avatar morganestes commented on May 6, 2024

@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.

ryankirkman avatar ryankirkman commented on May 6, 2024

Perhaps we could a set of buttons like:

http | https | protocol-relative

Defaulting to http but giving advanced developers other options

from cdnjs.

mxdpeep avatar mxdpeep commented on May 6, 2024

+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.

thomasdavis avatar thomasdavis commented on May 6, 2024

Removed the protocol and put a note in. Thanks guys!

from cdnjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.