cjss-group / CJSS

A CSS based web framework
https://cjss.js.org/
MIT License
670 stars 20 forks source link

Prepare JavaScript functions before calling #33

Closed c-harding closed 5 years ago

c-harding commented 5 years ago

This prevents JavaScript code blocks from needing to be loaded repeatedly when they are applied to multiple elements matching a selector. new Function() is expensive!

This is the result of splitting up #25 into a few distinct pull requests.

KargJonas commented 5 years ago

:joy: I think we just fixed the same issue..