• Blog
  • Categories
    • App Store
    • Benchmarks
    • iOS
    • Objective-C
    • OS X
    • PHP
    • RV
    • Swift
    • tvOS
    • Web
  • Apps
    • Portfolio
    • Studio Pro
    • Sun & Moon
  • Photography

Projects

Remote Working, iOS, Mac OS X, and more

Web

Simply mimic the ‘defer’ attribute for inline scripts across all browsers →

<script type="text/javascript">
$(function(){
    $('script[type="text/javascript/defer"]').each(function(){
        $(this).clone().attr('type', '').insertAfter(this);     
    });
});
</script>

A simple way to use inline JavaScript and also defer its execution until all dependencies are loaded.

  • Newer Posts
  • 1
  • …
  • 57
  • 58
  • 59
  • 60
  • 61
  • …
  • 106
  • Older Posts

Copyright 2025 Ryan Britton