WordPress.org

Ready to get started?Download WordPress

Forums

WPtouch Mobile Plugin
[resolved] base64 code in theme (3 posts)

  1. justinblayney
    Member
    Posted 1 year ago #

    Hello, I downloaded a fresh copy of the pro and I notice base64 code in the css, is this supposed to be there?

    classic theme - iphone - style.css
    line 2595 and others

    #addToHomeScreen .addToHomeShare {
    	display:inline-block;
    	width:18px;
    	height:15px;
    	background-repeat:no-repeat;
    	background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAPCAQAAABDj1eZAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAUdJREFUKFNtkLtLw1AYxS/qJLhXVKr2ZRulUNtiqgSb3CziICI6ucTFVYcOnaQOFRwUnNTRwUWXgpP/QdHNUEQUHGxofYBTlRs83iZNjKTncOGe7/vx3QchXUWn6FL3jhfKUdCCr5zuifV5oDiHQM+c+CIhiiCSWNu08iq9oHXKLAiqrgR4UXqlOEYZt++ExEL0wW7+OW0G10muLv9gmqfe5FAWKmTMYQYiFL7PYwyLOD8lSjNh2gdnPzMII4QUBxc4OothbAF7GCBKQ0YbSWyPQsIhqvetS+y0ygGMo/KFZfviDvR4AhwgZU9dGYnA0J/6ndc15i3ouYIMcVVUcEXIoOxCeRCfwP8sXBSdjtpUv/1QW+K16kCCIUC4id9Fa0JtkluwVkSfqPL6RwfSDA0aNlx7k/bWgViB7bMS2/1vk5sdsZLN/ALSuL3tylO4RAAAAABJRU5ErkJggg==);
    	background-size:18px 15px;
    	text-indent:-9999em;
    	overflow:hidden;

    http://wordpress.org/plugins/wptouch/

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 1 year ago #

    That sort of base64 in the CSS is known as a data uri, and it is a way to encode small images into CSS. This has a number of speed advantages for small image files, so yes, it's legit.

  3. justinblayney
    Member
    Posted 1 year ago #

    thank you

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.