diff --git a/src/components/display/WordsList.jsx b/src/components/display/WordsList.jsx index 6968f23..98bfa6e 100644 --- a/src/components/display/WordsList.jsx +++ b/src/components/display/WordsList.jsx @@ -3,20 +3,11 @@ import { Component } from 'inferno'; import PropTypes from 'prop-types'; import marked from 'marked'; -// npm lazyload-inferno-component uses outdated inferno dependencies, so just using the script. -import LazyLoader from '../../../vendor/LGabAnnell/lazyload-inferno-component/lazyload-component'; - import idManager from '../../managers/IDManager'; +import { Ad } from './Ad'; import { WordDisplay } from './WordDisplay'; -const loadAd = (callback, { props, router }) => { - require.ensure([], (require) => { - const component = require("./Ad").Ad; - callback(component); - }); -}; - export class WordsList extends Component { constructor (props) { super(props); @@ -39,7 +30,7 @@ export class WordsList extends Component { return (
{index % adsEveryXWords == 1 - && + && }