Embed base64 logo directly in source to avoid load

This commit is contained in:
Tanner Collin 2019-12-02 23:54:02 +00:00
parent 2d80b19414
commit 3363ccd47e
6 changed files with 9 additions and 2 deletions

View File

Before

Width:  |  Height:  |  Size: 538 B

After

Width:  |  Height:  |  Size: 538 B

View File

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

View File

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

View File

Before

Width:  |  Height:  |  Size: 500 B

After

Width:  |  Height:  |  Size: 500 B

View File

@ -2,7 +2,7 @@ import React from 'react';
import { Link } from 'react-router-dom';
import { Helmet } from 'react-helmet';
import localForage from 'localforage';
import { sourceLink, infoLine } from './utils.js';
import { sourceLink, infoLine, logos } from './utils.js';
class Feed extends React.Component {
constructor(props) {
@ -71,7 +71,7 @@ class Feed extends React.Component {
<div className='title'>
<Link className='link' to={'/' + x.id}>
<img className='source-logo' src={'logos/'+x.source+'.png'} alt='source logo' /> {x.title}
<img className='source-logo' src={logos[x.source]} alt='source logo' /> {x.title}
</Link>
<span className='source'>

File diff suppressed because one or more lines are too long