Ajax (get,post), get, post e load
JavaScript performance comparison
Info
Teste de funções para carregar conteúdos externos por get e post. Os metodos em geral são parecidos, sendo o Ajax o mais completo e o restante usa ele como base.
Apenas completei criando uma div onde o conteúdo vai ser carregado, completando os testes e adicionando 2 novos testes.
Obs: Os métodos Ajax só carregam a Div caso tenham sucesso na requisição, o restante não fiz para lidar com isso, podendo o Ajax ficar mais pesado por esse motivo.
Preparation code
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<div id="carregado">
</div>
Preparation code output
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
ajax - Get |
|
pending… |
get |
|
pending… |
load |
|
pending… |
post |
|
pending… |
ajax - Post |
|
pending… |
Compare results of other browsers
Revisions
You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:
- Revision 1: published by wesley
- Revision 2: published by Felipo Antonoff and last updated
0 comments