<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 编码图像的优缺点

        Advantages and disadvantages of using base64 encoded images(使用 base64 编码图像的优缺点)
            <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 编码图像的优缺点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  quot;Each child in an array should have a unique key propquot; only on first time render of page(“数组中的每个孩子都应该有一个唯一的 key prop仅在第一次呈现页面时)
                  How do I make a TextGeometry multiline? How do I put it inside a square so it wraps like html text does inside a div?(如何制作 TextGeometry 多线?如何将它放在一个正方形内,以便它像 html 文本一样包裹在 div 内?) - IT屋-程序员软件开发技术分享社
                  Scale background image to fit ie8 window(缩放背景图像以适合 ie8 窗口)
                  Safari 5.1 breaks CSS table cell spacing(Safari 5.1 打破 CSS 表格单元格间距)
                  Put in bold part of description in metatag Drupal module(将描述的粗体部分放在元标记 Drupal 模块中)
                  How to get file size of newly created Image() if src is base64 string?(如果 src 是 base64 字符串,如何获取新创建的 Image() 的文件大小?)
                • <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>

                            <tbody id='LDUaC'></tbody>

                            <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>