Posts

Showing posts with the label js

InstantClick - JS library to speed up your website

Latency is inevitable with today’s internet architecture so InstantClick cheats by preloading links you are likely to click on. Before visitors click on a link, they hover over that link. Between these two events, 200 ms to 300 ms usually pass by. InstantClick makes use of that time to preload the page, so that the page is already there when you click. If you want your website to not be flooded by requests, you can set a delay before preloading starts when users hover a link. It will still feel instant. If you don’t want any wasted request, you may preload on mousedown .

controldeck.js on Mac Os

Disclaimer: this post might not be the better solution, probably there are other solutions over the net. My intention was to give a try to  controldeck.js . The reason is that  this kind of presentations  blow my mind. Well is not all straightforward. Dependencies! You need dependecies to be able to run controldeck.js . Eaaaaasy i thought, there only two: node-static and socket.io ... and also node js... I already had node js so i only needed node-static and socket.io... How can i can install node packages modules? with npm . I tried npm in my console and surprisingly was already installed in my system! The way that you install node pkg modules is running npm install package . So I tried npm install node-static and an error appeared (same error also for socket.io). TypeError Arguments to path.resolve must be strings Reading and trying lot of things (most of them without knowing what they were really doing) i found a post that said to delete node js and rein...