<legend id='vNk3H'><style id='vNk3H'><dir id='vNk3H'><q id='vNk3H'></q></dir></style></legend>
<i id='vNk3H'><tr id='vNk3H'><dt id='vNk3H'><q id='vNk3H'><span id='vNk3H'><b id='vNk3H'><form id='vNk3H'><ins id='vNk3H'></ins><ul id='vNk3H'></ul><sub id='vNk3H'></sub></form><legend id='vNk3H'></legend><bdo id='vNk3H'><pre id='vNk3H'><center id='vNk3H'></center></pre></bdo></b><th id='vNk3H'></th></span></q></dt></tr></i><div id='vNk3H'><tfoot id='vNk3H'></tfoot><dl id='vNk3H'><fieldset id='vNk3H'></fieldset></dl></div>

<small id='vNk3H'></small><noframes id='vNk3H'>

  • <tfoot id='vNk3H'></tfoot>
      • <bdo id='vNk3H'></bdo><ul id='vNk3H'></ul>

        使用 base64 编码图像的优缺点

        时间:2023-10-01
            <tbody id='fT1HD'></tbody>

                <small id='fT1HD'></small><noframes id='fT1HD'>

                <i id='fT1HD'><tr id='fT1HD'><dt id='fT1HD'><q id='fT1HD'><span id='fT1HD'><b id='fT1HD'><form id='fT1HD'><ins id='fT1HD'></ins><ul id='fT1HD'></ul><sub id='fT1HD'></sub></form><legend id='fT1HD'></legend><bdo id='fT1HD'><pre id='fT1HD'><center id='fT1HD'></center></pre></bdo></b><th id='fT1HD'></th></span></q></dt></tr></i><div id='fT1HD'><tfoot id='fT1HD'></tfoot><dl id='fT1HD'><fieldset id='fT1HD'></fieldset></dl></div>

                • <bdo id='fT1HD'></bdo><ul id='fT1HD'></ul>
                  <tfoot id='fT1HD'></tfoot>
                • <legend id='fT1HD'><style id='fT1HD'><dir id='fT1HD'><q id='fT1HD'></q></dir></style></legend>
                  本文介绍了使用 base64 编码图像的优缺点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在考虑为我正在开发的网站使用 base64 编码图像以优化加载时间.

                  I am thinking of using base64 encoded images for a site I am working on to optimize the load time.

                  无论如何,在开始之前,我想知道:这样做的优点和缺点是什么?

                  Anyways, before I start, I was wondering: what are the advantages and disadvantages of doing this?

                  目前,我没有看到任何缺点,但我也注意到它不是一种经常使用的技术,这让我怀疑我是否没有错过什么.

                  At the moment, I don't see any disadvantage but also I noticed that it is not a technique used very often and that makes me wonder if I didn't miss something.

                  谷歌搜索了这个主题后,我没有找到任何明确的东西,所以我决定在这里问.

                  After googleing the subject I didn't find anything clear so I decided to ask here.

                  推荐答案

                  它只对非常小的图像有用.Base64 编码文件比原始文件大.优点在于不必打开另一个连接并向服务器发出 HTTP 请求以获取图像.这种优势很快就会消失,因此只有大量非常小的单个图像才有优势.

                  It's only useful for very tiny images. Base64 encoded files are larger than the original. The advantage lies in not having to open another connection and make a HTTP request to the server for the image. This benefit is lost very quickly so there's only an advantage for large numbers of very tiny individual images.

                  这篇关于使用 base64 编码图像的优缺点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Internet Explorer 和 Base64 图像显示 下一篇:如何从Javascript中任何图像类型的base64字符串中剥离数据:图像部分

                  相关文章

                • <tfoot id='LDUaC'></tfoot>
                • <legend id='LDUaC'><style id='LDUaC'><dir id='LDUaC'><q id='LDUaC'></q></dir></style></legend>

                    <small id='LDUaC'></small><noframes id='LDUaC'>

                        <bdo id='LDUaC'></bdo><ul id='LDUaC'></ul>

                    1. <i id='LDUaC'><tr id='LDUaC'><dt id='LDUaC'><q id='LDUaC'><span id='LDUaC'><b id='LDUaC'><form id='LDUaC'><ins id='LDUaC'></ins><ul id='LDUaC'></ul><sub id='LDUaC'></sub></form><legend id='LDUaC'></legend><bdo id='LDUaC'><pre id='LDUaC'><center id='LDUaC'></center></pre></bdo></b><th id='LDUaC'></th></span></q></dt></tr></i><div id='LDUaC'><tfoot id='LDUaC'></tfoot><dl id='LDUaC'><fieldset id='LDUaC'></fieldset></dl></div>