1993., NCSA Mosaic, HTML processor, browsing documents
Mocha/JavaScript - Sept 1995, released on 3rd of Dec 1995
1996., Netscape Navigator 3, HTML, CSS, JavaScript!
Netscape implemented CSS internally by translating CSS rules into snippets of JavaScript 🔥, which were then run along with other scripts 🔥🔥.
MS Internet Explorer, HTML, CSS, JavaScript, genius quirks etc
$(".gumb").on("click", function() {
$(".loader").show();
$.ajax({
url: "/api/dajVrijeme",
data: {
zipcode: 10020
},
success: function(result) {
$("#vrijeme-temp")
.html("<strong>" + result + "</strong> C*";
$(".loader").hide();
}
});
});
total bs if you ask me, devs just got "smart" new ideas
jk, the struggle is real, hint: see next slide :-)
Facebook 2018, init load: 263 requests, 9.1 MB transferred
define(function (require) {
var $ = require('jquery'),
lib = require('./lib'),
controller = require('./controller/c2'),
model = require('./model/m2');
//A fabricated API to show interaction of
//common and specific pieces.
controller.setModel(model);
$(function () {
controller.render(lib.getBody());
});
});
Well... I think this sums it up a bit? :)
It is really a mix, you know it, and differs from team to team.
Should we go React + Redux or Vue + Vuex?
Model-View-Update step by step: http://meiosis.js.org/
import { app, h } from "hyperapp";
// your data "model"
const state = {
message: "Hello World!"
};
// your JSX HTML markup UI
const view = (state) => {
return (
<div>{state.message}</div>
);
};
// run the app!
app(state, null, view, document.getElementById("root"));
VEDRAN MANDIĆ
mandic.vedran@gmail.com
@vekzdran @vmandic