title: IS Javascript event "onafterprint" Working in chrome 71.0.3578.80
body: <p>I used <code>window.onafterprint</code> javascript event and its working fine before chrome update but when i updated my chrome to 71.0.3578.80, it stop working and all functionality goes down. Can any body suggest me the alternative of this event. I want to detect after print event.  </p>
  
  <pre><code>var afterPrint = function () {
          var hide_if_empty = $('.hide-if-empty');
          for(var i = 0; i &lt; hide_if_empty.length; i++){
                  $(hide_if_empty[i]).parent('div').show();
          }
  
          var hide_duplicator = $('.duplicator');
          for(var i = 0; i &lt; hide_duplicator.length; i++){
              if($(hide_duplicator[i]).attr('id') != 'duplicator') {
                  $(hide_duplicator[i]).hide();
              }
          }
      };
      window.onafterprint = afterPrint;
  </code></pre>