To recap, our findings, Vue’s strengths are:
- Flexible options for template or render functions
- Simplicity in syntax and project setup
- Faster rendering and smaller size
React’s strengths:
- Better at scale, studier and more testable
- Web and native apps
- Bigger ecosystem with more support and tools available
bLazy is a lightweight script for lazy loading and multi-serving images, iframes, videos and more (less than 1.4KB minified and gzipped). It’s written in pure JavaScript why it doesn’t depend on 3rd-party libraries such as jQuery. It lets you lazy load and multi-serve your images so you can save bandwidth and server requests. The user will have faster load times and save data usage if he/she doesn't browse the whole page.
It's working in all modern browsers including IE7+.
Used by shaarli
Great lighweight alternative to a full-fledged CMS
TL;DR : do not use autocomplete
Use rel="noopener noreferrer"
Today I've been struggling to understand why this does not work in Firefox, but is OK in Chrome:
<html>
<head>
<meta charset="UTF-8">
<base href="/">
head>
<body>
<svg>
<symbol id="pretty-circle">
<circle cx="15" cy="15" r="10"/>
symbol>
<use xlink:href="#pretty-circle">use>
svg>
body>
html>
Here …
This #JavaScript draws a #maze. Save as maze.html, open in browser.
My mix of elements to put a fixed header over centered, responsive content. Here, the height can be variable. The top of the scrolling content is offse...
I recently worked on a short website project using Django & Heroku. It was my very time using this Python framework, and I really liked it !
This is a compendium of tips & tricks that I, as a Django beginner, found quite useful :
Django enhanced shell
To install it :
pip install django …
Die shell script, DIE !
In this post, I'll show how easy it ease to convert fragile shell scripts to Python scripts, using sh.py. I'll use as an example a simple script to check your HTML code from the command-line, using the W3C validator.
Now you ask me, why the …
Sometimes, it's useful to print some source code on paper. And PDF is a very common file format, that you can be sure your printer will accept, and that will let you preview the final page layout. But how to quickly perform syntax-coloring and export to PDF ?
I've been experimenting …
W3C's easy-to-use
markup validation service, based on SGML and XML parsers.
This post is only relevant to you if you use browserify
. For a good introduction to this powerful Javascript bundling tool, check this doc.
First of all, I'd like to take my hat off to James Hallyday and Peteris Krumins who have built such amazing tools as browserify
, testling
and …