No CSS, No HTML [p03]: Maintaining CSS files

20 Feb

Totty got tired because:

  1. To write plugins/widgets/modules in javascript mixed with HTML and maintain an external CSS file for each;
  2. Has to make DOM queries;

Then he think and solved:

  1. Got a client framework that abstracts all the CSS and HTML therefore writing a plugin/widget/module only needs at least 1 pure javascript file (no strings with HTML);
  2. By generating HTML there is no need to make DOM queries because all the elements are stored in a variable when are created or appended to the DOM;

Leave a comment