Wednesday, October 21, 2015

How to Ensure Your Social Media Content Meets FTC, FDA and Google Requirements

bl-social-media-ftc-fda-google-560

Are you involved with influencer marketing campaigns? Do you know how to meet disclosure and compliance requirements? By following a few simple guidelines, you can maintain transparency while producing brand-sponsored content that engages consumers. In this article you’ll discover how to make sure your content meets Federal Trade Commission (FTC), Food and Drug Administration (FDA) […]

This post How to Ensure Your Social Media Content Meets FTC, FDA and Google Requirements first appeared on Social Media Examiner.
Social Media Examiner - Your Guide to the Social Media Jungle


by Brad Lawless via Social Media Examiner

J. Walter Thompson Amsterdam

A new kind of advertising agency that believes our complex world calls for intergalactic domination and for our signature working process: Think, Do, Make.
by via Awwwards - Sites of the day

Tuesday, October 20, 2015

Project Cards Template in CSS & jQuery

A portfolio template with expandable projects and a full-page navigation inspired by Primer app.

The post Project Cards Template in CSS & jQuery appeared first on jQuery Rain.


by Admin via jQuery Rain

deSVG : JS Library to Remove inline SVG bloat

deSVG is a js library to remove inline SVG bloat from your HTML document.
deSVG takes the <img /> tags you supply. It then grabs, using AJAX, the raw SVG you’ve set in the src attribute and replaces that <img /> with the <svg /> it downloads.

The post deSVG : JS Library to Remove inline SVG bloat appeared first on jQuery Rain.


by Admin via jQuery Rain

Zelect : jQuery Plugin for Custom Select Elements

Zelect is a jQuery plugin to create custom <select> elements.

Features:

  • Lightweight
  • Zero base CSS, roll your own
  • Customizable
  • Handles asynchronous paged loading of large option lists (read: AJAX-ready-and-enabled)
  • Initializable in a detached or hidden DOM node
  • Programmatically selectable and changeable
  • Unit-tested

The post Zelect : jQuery Plugin for Custom Select Elements appeared first on jQuery Rain.


by Admin via jQuery Rain

#Twitter Tips: What 1M Tweets Tell You About How People Tweet Successfully - #infographic

#socialmedia Tips: What 1M Tweets Tell You About How People Tweet Successfully - #infographic

Did you know that on Twitter, tweets that include images receive significantly more engagement, nearly 23 percent more retweets, favorites, replies combined than tweets without images. And that Tweets that do not include links receive, approximately 25 percent more engagement, on average, than tweets that do include links.

The science of Twitter engagement is always evolving, that's why the team at Buffer has analyzed one million Twitter tweets, to learn about what factors affect the amount of engagement tweets receive.

And this infographic illustrates what Buffer found:

by Irfan Ahmad via Digital Information World

How to Solve Caching Conundrums

The web wouldn't operate without caching. Between you and the server, there is a browser and any number of proxy servers which cache responses. Much of this is handled transparently by applications which dramatically reduce Internet traffic. However, it can also be the cause of bizarre web application quirkiness if you're not very careful …

Set Your Headers

headers

Caching is controlled by the HTTP status code and the Last-Modified, Etag and Cache-Control headers returned by every request. For subsequent requests to the same URL, the browser/proxy will either:

  1. retrieve the previous data from its own cache
  2. ask the server to verify whether the data has changed, or
  3. make a fresh request.

The Cache-Control header primarily determines this action. It can set up to three comma-separated values:

nostore or nocache
nostore stops the browser and all proxy servers caching the returned data. Every request will therefore incur a trip back to the server.

The alternative is nocache. The browser/proxy will make a server request and pass back Last-Modified (date/time) and/or an Etag (response hash/checksum) in the header. These are present on subsequent requests and, if the response has not changed, the server returns a 304 Not Modified status, which instructs the browser/proxy to use its own cached data. Otherwise, the new data is passed back with a 200 OK status.

public or private
Setting Cache-Control to public means the response is the same for everyone and the data can be cached in browser or proxy stores. It's the default behavior, so it's not necessary to set it.

private responses are intended for a single user. For example, the URL http://ift.tt/1XiyZVj returns a set of messages unique to each logged-in user, even though both of them use the same URL. Therefore, the browser can cache the response, but proxy server caching is not permitted.

max-age
This specifies the maximum time in seconds a response remains valid. For example, max-age=60 indicates the browser/proxy can cache the data for one minute before making a new request.

Your server, language and framework often control these settings, so you rarely need to tinker -- but you can. Presume you wanted to cache an individual user's JSON response to an Ajax request for 30 seconds. In PHP:

[code language="php"]
header('Cache-Control: private,max-age=30');
echo json_encode($data);
[/code]

or a Node.js/Express router:

[code language="javascript"]
res
.set('Cache-Control', 'private,max-age=30')
.json(data);
[/code]

Continue reading %How to Solve Caching Conundrums%


by Craig Buckler via SitePoint