javascript - Image Loading Slow In Firefox -


i have web application trying load organization image @ top left corner, page loaded in ajax call , in jquery onload function assigning img src base64. works on chrome in firefox image taking lot of time load, though other contents loaded instantly.

sample scenario:

function loadpage() {  showpreloader(); $.ajax({   url: url,   success: function(respone){           hidepreloader();           $('#body-content').html();           $('#body-content').html(respone);           }          });    } 

responsehtml:

<body> <!-- loading --> <img id="logo"/> </body>   <script> $(function(){    document.getelementbyid('logo').src = 'data:image/jpeg;base64/9j/4aaq...'; }); </script> 

note: images stored in db base64 , getting c# model , assigning src attribute.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -