Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

259
Visualizações
Is the file protocol faster than URL.createObjectURl()?

I want to display some image files and play some sounds files on the users' PCs. I have two solutions for that:

  • If the users open a .html file on their PCs, I can write something like <img src="file://.." />.
  • If I put these .html files on the server then I can only open these files with an input tag such as <input type="file"> and write something in js such as $("#img").attr("src", URL.createObjectURL(files[0]));.

Is the file protocol faster than URL.createObjectURL if the timing is important for me and why? Will the difference be large?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda