Skip to content
Moh. Php Master edited this page Jan 10, 2020 · 1 revision

UnderZ JS Library Wiki

A tiny Library With huge use.

Built to be:

  1. Easier to use with each call.
  2. Resources friendly, shouldn't eat all your cake.
  3. Optimized performance, each call should execute and finish ASAP.

Write and rewrite until it is right. By: hard coder


How to include the library in my project ?

  1. Get the library file _z.js and place it in your project folder.
  2. Include the library in your html file inside <head> tag, better if it is The First JavaScript Include:
<head>
<script type="text/javascript" src="_z.js"></script>
</head>
  1. Done!.

How to initiate the code when the library starts ?

  1. Edit the script tag and add underZ attribute to it:
<head>
<script type="text/javascript" src="_z.js" underZ></script>
</head>
  1. Type your code inside the tag:
<head>
<script type="text/javascript" src="_z.js" underZ>
// add variable to library
_z.var = [ "data", 123 ];
// edit the `var` variable
_z.var["data2"] = { "char": 'c', "num": 9 };

// clone the library to new var
$ = _z;
</script>
</head>
  1. When the page loads the library, your code will be executed immediately; even if the page is not ready.