How to fix problems - soft-rejected

I have review - but i don’t know what change
help please

PROPER EVENT BINDING: Consider using the preferred .on() method rather than .click(), .bind(), .hover(), .load(), .ready(), etc. For best performance and concise code use event delegation whenever possible:



You need to modify your code. What does this mean?

###For example if you have .click function

$('#whatever').click(function() {
     /* your code here */

####You need to use:

$('#whatever').on('click', function() {
     /* your code here */

And same concept for all your, .bind(), .hover(), .load(), .ready()

Check this stackoverflow post to see difference between .on(‘click’) vs .click()

The idea is to optimize your code for faster page loading.

Thx it’s help me :slight_smile:

i have another bug

CACHE JQUERY OBJECTS: Please cache the jQuery objects that are used more than once when it’s possible, this will help a lot with performance of the site.

do you have solutions?

Take a look here: