Skip to content

raphamorim/aQuery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aQuery

jQuery modeled chunk [<=1kb]

Why??

If the loading of your page, you use some jquery plugins methods to load, validate browser or whatever. You do not want to stop loading the page to get a 30 to 35kb script where you will use some methods.

The aQuery allows you to use the same methods and when the page loads it enables be replaced by jQuery. So do not block the loading of the page. Working as a chunk.

Also: Supports UMD.

Methods

.on

$('#anyElement').on('click', function(e) {
	// Some Cool Action
})

.show

$('#anyElement').show(); // without fadeIn effect

$('#anyElement').show(300); // with fadeIn effect

.hide

$('#anyElement').hide(); // without fadeOut effect

$('#anyElement').hide(500); // with fadeOut effect

.addClass

$('#nonsense').addClass('className');

.removeClass

$('#nonsense').addClass('className');

Credits:

Raphael Amorim 2016.

About

jQuery chunk [<=1kb]

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published