1
I have a selectbox <select>
HTML that has a very large content, are more than 1000 records that must be loaded, only that in performance issues I believe it is getting bad.
I would like some solution in javascript, jquery or angular, that solves my performance problem when loading the data in this selectbox.
Currently I load my selectbox like this:
<select id="id_empresa" class="form-control">
<option value="0">Todas</option>
<?php foreach( $empresas as $empresa ): ?>
<option value="<?=$empresa[ "id_empresa" ];?>"><?=$empresa[ "nome" ];?></option>
<?php endforeach; ?>
</select>
Just to complement: In the select box you can use the infinite scroll technique, bringing x in x data when arriving at the end of the select box.
– Mauro Alexandre