New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(NEED Feedback) head.responsive v2.0.0-alpha #269

Open
robert-hoffmann opened this Issue Nov 8, 2013 · 5 comments

Comments

Projects
None yet
3 participants
@robert-hoffmann
Member

robert-hoffmann commented Nov 8, 2013

Hello !

Getting things ready for 2.0, the first focus is currently on head.responsive()

Please check it out here http://headjs.com/src/2.0.0/tests/responsive.html and come leave your feedback in this thread.

Thanks !

@robert-hoffmann robert-hoffmann added the Bug label May 19, 2014

@paradisaeidae

This comment has been minimized.

Show comment
Hide comment
@paradisaeidae

paradisaeidae Aug 22, 2014

Great work Robert!
Is there an option in 1.02 or above to nominate a port other that 80?
All the best,
MarkT

Great work Robert!
Is there an option in 1.02 or above to nominate a port other that 80?
All the best,
MarkT

@robert-hoffmann

This comment has been minimized.

Show comment
Hide comment
@robert-hoffmann

robert-hoffmann Aug 23, 2014

Member

yay, 1st comment ! :-)

What do you mean another port ? As long as you specify the right url i think it should just work ?

Member

robert-hoffmann commented Aug 23, 2014

yay, 1st comment ! :-)

What do you mean another port ? As long as you specify the right url i think it should just work ?

@paradisaeidae

This comment has been minimized.

Show comment
Hide comment
@paradisaeidae

paradisaeidae Aug 23, 2014

Relative url are easier to readSo I have a mod which works.  asset.uri =  http:// + document.domain + port + asset.uri (not code)...Still sketching on this. MarkT From: Robert HoffmannSent: Saturday, 23 August 2014 20:31To: headjs/headjsReply To: headjs/headjsCc: MarkTSubject: Re: [headjs](NEED Feedback) head.responsive v2.0.0-alpha (#269)yay, 1st comment ! :-)

What do you mean another port ? As long as you specify the right url i think it should just work ?

—Reply to this email directly or view it on GitHub.

Relative url are easier to readSo I have a mod which works.  asset.uri =  http:// + document.domain + port + asset.uri (not code)...Still sketching on this. MarkT From: Robert HoffmannSent: Saturday, 23 August 2014 20:31To: headjs/headjsReply To: headjs/headjsCc: MarkTSubject: Re: [headjs](NEED Feedback) head.responsive v2.0.0-alpha (#269)yay, 1st comment ! :-)

What do you mean another port ? As long as you specify the right url i think it should just work ?

—Reply to this email directly or view it on GitHub.

@paradisaeidae

This comment has been minimized.

Show comment
Hide comment
@paradisaeidae

paradisaeidae Aug 24, 2014

Hi Robert,
Here's a snippet from the mod I use.
The prepend of http:// could be a config option?
I've had tricky stuff happen with Content-Security-Policy when using a bare

domain prefix.

    var ele;
    if (/\.css[^\.]*$/.test(asset.url)) {
     ele      = doc.createElement("link");
     ele.type = "text/" + (asset.type || "css");
     ele.rel  = "stylesheet";
     ele.href = asset.url;
    }
    else if (window.document.contentType== "image/svg+xml") {
     var xlinkNs = 'http://www.w3.org/1999/xlink';
     var svgNs = 'http://www.w3.org/2000/svg';
     ele = doc.createElementNS(svgNs, 'script');
     ele.setAttributeNS(null, 'type', 'text/ecmascript');
     asset.url = 'http://' + document.domain + asset.url;
     ele.setAttributeNS(xlinkNs, 'xlink:href', asset.url);
     doc.documentElement.appendChild(ele); }
    else {
     ele      = doc.createElement("script");
     ele.type = "text/" + (asset.type || "javascript");
     ele.src  = asset.url;  }
    ele.onload  = ele.onreadystatechange = process;
    ele.onerror = error;

Oh, yeah.... I use svg as the main document.

MarkT

On Sat, Aug 23, 2014 at 8:40 PM, paradise paradisaeidae@gmail.com wrote:

Relative url are easier to read
So I have a mod which works.
asset.uri = http:// + document.domain + port + asset.uri
(not code)...

Still sketching on this.

MarkT
*From: *Robert Hoffmann
*Sent: *Saturday, 23 August 2014 20:31
*To: *headjs/headjs
*Reply To: *headjs/headjs
*Cc: *MarkT
*Subject: *Re: [headjs](NEED Feedback) head.responsive v2.0.0-alpha
(#269)

yay, 1st comment ! :-)

What do you mean another port ? As long as you specify the right url i
think it should just work ?


Reply to this email directly or view it on GitHub
#269 (comment).

(+61 4) 0679 5734 ::'They promised us flying cars. Instead we got 140
characters.'

Hi Robert,
Here's a snippet from the mod I use.
The prepend of http:// could be a config option?
I've had tricky stuff happen with Content-Security-Policy when using a bare

domain prefix.

    var ele;
    if (/\.css[^\.]*$/.test(asset.url)) {
     ele      = doc.createElement("link");
     ele.type = "text/" + (asset.type || "css");
     ele.rel  = "stylesheet";
     ele.href = asset.url;
    }
    else if (window.document.contentType== "image/svg+xml") {
     var xlinkNs = 'http://www.w3.org/1999/xlink';
     var svgNs = 'http://www.w3.org/2000/svg';
     ele = doc.createElementNS(svgNs, 'script');
     ele.setAttributeNS(null, 'type', 'text/ecmascript');
     asset.url = 'http://' + document.domain + asset.url;
     ele.setAttributeNS(xlinkNs, 'xlink:href', asset.url);
     doc.documentElement.appendChild(ele); }
    else {
     ele      = doc.createElement("script");
     ele.type = "text/" + (asset.type || "javascript");
     ele.src  = asset.url;  }
    ele.onload  = ele.onreadystatechange = process;
    ele.onerror = error;

Oh, yeah.... I use svg as the main document.

MarkT

On Sat, Aug 23, 2014 at 8:40 PM, paradise paradisaeidae@gmail.com wrote:

Relative url are easier to read
So I have a mod which works.
asset.uri = http:// + document.domain + port + asset.uri
(not code)...

Still sketching on this.

MarkT
*From: *Robert Hoffmann
*Sent: *Saturday, 23 August 2014 20:31
*To: *headjs/headjs
*Reply To: *headjs/headjs
*Cc: *MarkT
*Subject: *Re: [headjs](NEED Feedback) head.responsive v2.0.0-alpha
(#269)

yay, 1st comment ! :-)

What do you mean another port ? As long as you specify the right url i
think it should just work ?


Reply to this email directly or view it on GitHub
#269 (comment).

(+61 4) 0679 5734 ::'They promised us flying cars. Instead we got 140
characters.'

@jott19

This comment has been minimized.

Show comment
Hide comment
@jott19

jott19 Dec 11, 2014

One thing I'd find helpful--which I can't find in any other library--is correlation of feature set (or lack of features) to specific Browser and version, e.g. (IE7compatible=false, Firefox10+compatible=yes). Modernizr will get feature set, but most often just knowing browser and version is all I need... very helpful for testing. Enumerating feature sets/browser versions cant be that difficult ??

jott19 commented Dec 11, 2014

One thing I'd find helpful--which I can't find in any other library--is correlation of feature set (or lack of features) to specific Browser and version, e.g. (IE7compatible=false, Firefox10+compatible=yes). Modernizr will get feature set, but most often just knowing browser and version is all I need... very helpful for testing. Enumerating feature sets/browser versions cant be that difficult ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment