Posts by Kayan Brandão Lira • 21 points
1 post
-
2
votes3
answers323
viewsA: Optimize Ajax Search that Shows Slowness
I would think of making an if before performing the ajax call. Only calling if the field value is greater than or equal to 4. Follow the code below: if( this.val().length >= 4 ){…