0 votes
2 answers
211 views
Loading a .js file conditionally. How?First demo is a .js file which is loaded with: <script src="https://cdnjs.cloudflare.com/ajax/libs/zooming/1.4.2/zooming.js"></script> https://codepen.io/zuhocuyixu/pen/oqpdWz The .js ...
asked Mar 30, 2018 at 10:180 votes
1 answer
253 views
head.js "Modernizr" like feature doesn't detect ms-edgeI've noticed that head.js doesn't detect Microsoft "Edge" browser, and to top that, it adds incorrect chrome and chrome55 classes to the <html> element. Does anyone know of a suitable ...
asked Jan 17, 2017 at 9:150 votes
1 answer
415 views
$(document).ready() not firing when calls in head.ready()I have an issue using jQuery $(document).ready and headjs framework v1.0.3, with the head.ready functionality, only on Internet Explorer (version 11, I can't try on an older version), and only once in ...
asked Oct 2, 2015 at 13:100 votes
1 answer
616 views
Setting up dependencies with head.jsI just started using head.js for loading JS files asynchronously with dependencies. Looking at the API documentation and examples, I see that you can apply labels to JS files, then run some ...
asked Sep 28, 2015 at 21:581 vote
1 answer
427 views
Optimize CSS Delivery with head.js for Google Page Speed failMy page templates have a assets javascript array with assets list of css, js to use in that page, eg.: <!DOCTYPE html> <html> .......... .......... <script type="text/javascript"> ...
asked Jul 11, 2015 at 8:131 vote
1 answer
163 views
Head.js `.js()` methodI have some code I inherited from my job, and it uses an api call from head.js: head.js( { 'application' : 'someurl.com/foo.js' }); Does this register the javascript asset as application, so when I ...
asked Dec 10, 2014 at 2:312 votes
1 answer
287 views
Detecting load failures with head.jsWhen a required script doesn't load, the callback fires even if the script load fails (404): function callback () { console.log('callback,', arguments); } head.test({ test: 1 === 1, ...
asked Jul 4, 2014 at 8:180 votes
1 answer
560 views
Head.js multiple cals of head.loadDoes multiple calls of head.load syncronised? I mean if we have code like this: head.load('scr1.js',...,'scr8.js'); head.load('scr11.js',...,'scr18.js'); .................. head.load('scr81.js',...,'...
asked Jun 4, 2014 at 5:350 votes
0 answers
285 views
Loading many js files with head.js. Adblock blocks adsense script, that sends the page on an infinite loading loopI'm trying to load a bunch of javascripts with head.js. I'm also loading Google Adsense javascript file with headjs. When I have AdBlock on and try to refresh the page (from browser cache) it keeps ...
asked May 6, 2014 at 8:002 votes
1 answer
1k views
Using Head.js from an external JS file to load resourcesI have an HTML file which includes a JS file in the head tag.. <script type='text/javascript' src='lib/head.core.min.js'></script> <script type='text/javascript' src='custom/my.js'>&...
asked Feb 7, 2014 at 7:180 votes
1 answer
313 views
how to generate headJS fallbacksHow can I properly implement fallback for headJS and Jquery (if the CDN fails to load) within the head load function? I cant find anything on the documentation about fallbacks. http://headjs.com/ ...
asked Jan 22, 2014 at 18:22 What is the distinction between head.ready() and head.load()?Using the JS loader head.js I'm having a bit of a hard time distinguishing the subtle differences between head.ready() and head.load(). head.ready('jquery.js', function(){//Do something}); VS head....
asked Dec 5, 2013 at 9:421 vote
1 answer
189 views
passing in script attributes (data-vars) into head.js?is there a way to pass script attributes into the loading javascript via head.js? for example script we need to load is in original form like this : <script type="text/javascript" charset="utf-8"...
asked Oct 30, 2013 at 13:300 votes
1 answer
222 views
Applied head js but script doesnt executeI am just using headjs for my website but the problem is the files are loaded, but they doesnt execute. Here is my code in the <script type="text/javascript" src="js/head.js"></script> &...
asked Oct 17, 2013 at 7:110 votes
1 answer
171 views
Head.js weird actionI'm trying to use head.js. Getting some weird action. Below works but if I comment out "alert('hi')" in the script in the BODY, then the head.js doesn't seem to work. So I tried commenting out all ...
asked Sep 9, 2013 at 1:10RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4