Need to know if user is coming from frontpage using jquery
jQuery(document).ready(function($) {
  var referrer =  document.referrer;
  if (referrer == 'http://domain.tld/') {
    // Make whatever you like  
  }
});