Jump to content

asigno

Clients
  • Posts

    537
  • Joined

  • Last visited

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Posts posted by asigno

  1. I run Ezoic, which are a publishing partner for Google premium ads. I make considerably more money with them than using Adsense directly. HOWEVER it slows your site, this may not be a tradeoff you want to make.

    I too don't show ads to subscribed members, so their payment removes ads and increases page load speed.

    Ezoic have a lot of tools for caching and increasing page speed, image optimization, critical css etc. but the key one as in caching isn't suitable for forums.

  2. 13 hours ago, Sheffielder said:


    If someone with a Safari browser visits a site with Webp images on there does it still display the images but as Jpg or does it show a blank space where the image should be?

    I'm using Cloudflare and there's an option to enable webp images but I dont' want to do it if someone with a non supported browser can't see my images?

    Cloudflare will only serve .webp to browsers which support it.

  3. On 10/25/2019 at 4:13 AM, Morgin said:

    When you say "2 custom - user defined - lookup table" do you mean you added a new table to your DB to do group lookups for ezoic?

    No, I have added JS to the template to send the group ID to a JS variable. I then use a lookup table in GTM to read that variable and choose whether to set the cookie to not show ads.

    <script>
    var groupId = {expression="\IPS\Member::loggedIn()->member_group_id"};
    </script>

     

  4. On 7/17/2019 at 10:33 PM, AlexWebsites said:

    For anyone using Ezoic, do you end up using your own adsense account and still see earnings in adsense or is it all through ezoic? I'm currently using adsense directly because I had too many styling issues with auto ads and didn't see a difference in earnings. 

    I use the mediation app in Ezoic which allows me to still run my own adsense through the Ezoic bid system. However I've only make a few dollars though adsense as it is nearly always outbid by the premium ads through Google's display network through Ezoic.

    You can manually place the Ezoic placeholders so you have full control over their positioning.

    You make considerably more revenue through Ezoic, however it considerably slows your site down too. If you have a static site (non IPB) you can use their caching and site speed functionality where it wouldn't be an issue. 

  5. I set a cookie to certain user groups, Ezoic then don't display ads to those browsers with cookies.

    I use GTM to set the cookie on login.

    1. I have a custom JS variable, which returns the member group:

    function() {
     return window.groupId 
    }

    2. I have a lookup table which then changes the output as it's just the DB number of the group and I'd like it readable

    3. Then I have a custom HTML tag to create a cookie with noAdverts = true

    <script>
        var memberType = {{Lookup table - Group ID}};
        if (memberType === 'Admin' || memberType === 'Moderator' || memberType === 'YOC Member' || memberType === 'Supporter' || memberType === 'Corporate') {
      var expirationTime = 7776000; // THREE month in seconds
            expirationTime = expirationTime * 1000; // Converts expirationtime to milliseconds
            var date = new Date();
            var dateTimeNow = date.getTime();
            date.setTime(dateTimeNow + expirationTime); // Sets expiration time (Time now + one month)
            var expirationTime = date.toUTCString(); // Converts milliseconds to UTC time string
            document.cookie = "noAdverts = true; expires=" + expirationTime + "; path=/; domain=." + location.hostname.replace(/^www\./i, ""); // Sets cookie for all subdomains
        }  
    </script>

    4. Ezoic's tech team make a change their end to only allow ads to be served to non cookied browsers

     

    It's not perfect, as I didn't bother to set a script to remove the cookie on logout. But I also didn't want those users to see ads if they did log out, so set a 3 month expiry.

    It's possible for anyone to manually create the same cookie value and they wouldn't see ads, but I think it's very unlikely for someone to do this.

  6. 19 hours ago, opentype said:

    The point was: background images with known dimensions are not needed to start the page rendering. That’s was the only point of that sentence. 

    But the page can't start rendering until the CSS file has been parsed. It's actually something I want to get around to testing, did you try it both ways?

    Edit: just found example of lazy loading background images https://toad.js.org/

  7. On 2/25/2019 at 8:39 PM, opentype said:

    SuperBlocks only uses container background images, which don’t slow down page rendering and then the browser fills in the empty slots dynamically. That already works nicely. 

    Images declared in the CSS will mean it takes longer for the browser to parse the CSS file delaying the loading of the visible page. If they were img src tags the requests would be made as the HTML is parsed so the visible page can load earlier. Why do you say they don't slow down rendering?

  8. FYI

    With the introduction of Dark Mode in macOS Mojave last year, web developers have been asking for support in Safari to style web content that matches the system appearance. With the Safari 12.1 update in macOS 10.14.4, dark mode support in WebKit has arrived.

    https://webkit.org/blog/8840/dark-mode-support-in-webkit/

     

    Android Q will feature dark mode

    https://www.engadget.com/2019/05/07/android-q-google-IO-2019-dark-mode/

     

×
×
  • Create New...