#!/bin/sh
#
# Perform some extrs simplifications to our HTML5 source stdin to stdout
# to reduce space taken (eg by CCS in the head and thus Critical Rendering Path)
# and to reduce CPU time taken on small devices (eg mobile).
#
# This is not intended to change the styling effect for mobile screens.
#
# 1) Move all IMG left floats to right floats for narrow screens (and less CSS).

exec sed \
    -e 's/^ *\(<IMG [^>]*\) class="respfloatlsml"/\1 class="respfloatrsml"/'
