Skip to content

Simple helper method to append items all at once into a DOM rather than one by one which is not good for performance

License

Notifications You must be signed in to change notification settings

shiawuen/jquery-map-append

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Map Append

Simple helper to solve bad practice of inserting element one by one into DOM instead of generate all and insert once

Getting Started

Download the production version or the development version.

Examples

<script src="jquery.js"></script>
<script src="dist/map-append.min.js"></script>
<script>
jQuery(function($) {
  $('#container').mapAppend(collection, function(val, key){
  	return '<div>' + val + '</div>';
  });
});
</script>

About

Simple helper method to append items all at once into a DOM rather than one by one which is not good for performance

Resources

License

Stars

Watchers

Forks

Packages

No packages published