• This repository has been archived on 13/Feb/2019
  • Stars
    star
    1,260
  • Rank 37,337 (Top 0.8 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 10 years ago
  • Updated about 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Sometimes images just load too damned fast.

ComcastifyJS

With all this internet going around, sometimes you just want to experience the thrill of a long page load. Give your users the chance to enjoy a little slice of the future by slow loading your website's images with ComcastifyJS!

Lets slow things down!

  1. Include comcastify.js on your page, or use the latest version from our CDN:

    <script src="http://code.onion.com/comcastify.js"></script>
  2. Prepare the images on your page on document ready (so images don't show up before the box):

    comcastifyjs.letsPrepareTheseImages();
  3. Initialize comcastify on window load (so image sizes are properly calculated):

    comcastifyjs.fixMyImagesLoadingSoFast({
        boxColor: '#123456',
        loadMaxPercent: 0.75,
        loadSpeed: 100,
        loadIncrement: 5
    });
  4. Switch up parameters to change your experience:

    • elements : A list of DOM elements to limit comcastification to.
    • boxColor : The hex color for the box placed over images.
    • loadMaxPercent : The max percentage of image to load. (0 to 1)
    • loadSpeed : Time required to load your images to their max in ms.
    • loadIncrement : Number of pixels to load each time the loadSpeed timer ticks.
    • randLoadIncrement: Set to true to make load increment random, loadIncrement ignored in this case.
    • randomPause : Probability of skipping a pass each time the loadSpeed timer ticks. (0 to 1)
    • progressiveJPEG Set to true to enable progressive JPEG emulation

See it in action!

See an example on the project's site at: http://theonion.github.io/comcastifyjs/

Or, see it modeled by these koalas!

That's it!

Now grab a coffee and enjoy the load times!

More Repositories

1

fartscroll.js

You want fart noises as you scroll? We've got you covered.
2,832
star
2

videojs-vast-plugin

A VideoJS plugin for VAST
JavaScript
263
star
3

ansible-roles

** DEPRECATED **
Python
56
star
4

videojs-persistvolume

A plugin for videojs that saves user's volume setting.
JavaScript
34
star
5

videojs-endcard

Simple, customizable end card solution for VideoJS.
JavaScript
30
star
6

betty-cropper

A work-in-progress image cropper.
Python
27
star
7

bulbs-cms

An Angular-based CMS for a bulbs-based content system
JavaScript
27
star
8

django-bulbs

DEPRECATED: This project is now part of the Mono Repo (https://github.com/theonion/omni)
Python
26
star
9

django-zencoder

A django video encoding app
Python
17
star
10

editor

It's an HTML editor.
JavaScript
14
star
11

dehumanizer

Converting messy reality into accurate text since 2012.
Python
13
star
12

splitpic

The "Split-Pic" functionality, as used on Clickhole
JavaScript
12
star
13

onion-ads

Shared ad loading & ad unit code.
JavaScript
8
star
14

videojs-sharetools

A share tools plugin for videojs
CSS
8
star
15

crash-docker

this repository will reliably crash docker for mac
Python
7
star
16

videojs-skip-ads

Allows for an HTML5 overlay during preroll playback
JavaScript
6
star
17

restmod-style-drf-paged

Django Rest Framework paged style for restmod
JavaScript
6
star
18

django-elastimorphic

A marriage of django-polymorphic and elasticutils.
Python
5
star
19

django-betty-cropper

An image app that works with betty cropper
Python
4
star
20

onion-services

A collection of Docker containers to power web dev at The Onion
Shell
4
star
21

shitty-ad-detector

Sometimes there are shitty remnant ads. This is an attempt to help identify them.
JavaScript
4
star
22

theonion.github.com

Blog
JavaScript
4
star
23

videojs-autoplay-toggle

A plugin for Video.js that adds an autoplay toggle which will persist to cookies or localstorage.
JavaScript
3
star
24

ansible-uwsgi-emperor

An Ansible role to install uWSGI in Emperor mode
3
star
25

general-job-description

A job description for programmers at The Onion
3
star
26

urlify

JavaScript
3
star
27

onionbot

America's Finest Slack Integration
JavaScript
3
star
28

djes

Spinnin' them phat searches
Python
3
star
29

djesrf

djes + drf = one legit api
Python
3
star
30

django-elasticsearch

or how i learned to stop using elasticutils and start loving elasticsearch-py and elasticsearch-dsl-py
Python
2
star
31

bulbs-elements

<web-components> for the onion and sites
JavaScript
2
star
32

video-ad-server-frontend

The front end code for the video ad server.
CSS
2
star
33

bower-onion-video-ad-server-frontend

A bower release for onion video ad server
HTML
2
star
34

publishing-feeds

A simple little Django project to turn RSS feeds into Kindle feeds.
Python
1
star
35

videohub-player

Parking videohub player code here until we can sort it out better.
JavaScript
1
star
36

drf-nested-serializer

DRF Nested Serializers
Python
1
star
37

tinytracker

gvent/wsgi/carbon, oh my
Python
1
star
38

hubot

CoffeeScript
1
star
39

videohub-client-js

CMS components for integration with the videohub
JavaScript
1
star
40

influx-trending

stuff that influx should be able to do, but doesn't, so now i have to do it
Python
1
star
41

influxer2

A simple, fast uwsgi/gevent application to record pageview data to InfluxDB
Python
1
star