GithubHelp home page GithubHelp logo

isabella232 / h2-safari Goto Github PK

View Code? Open in Web Editor NEW

This project forked from robotsandpencils/h2-safari

0.0 0.0 0.0 146 KB

Proof of concept to demonstrate Safari.

JavaScript 1.34% CSS 0.02% HTML 36.85% Elixir 61.80%

h2-safari's Introduction

Sample

Summary

This project is to demonstrate a bug in Safari where loading a webpage over H2 will fail if the page is over a certain length.

You will notice the page loads just fine in:

  • Chrome
  • Firefox
  • cURL

I have added a fifth test that has identical HTML to test 1 but doesn't use templates or views to render the page. Instead it is a giant heredoc.

It works.

To Reproduce

First you will need elixir and erlang installed. Install them with brew:

  • Install Erlang: brew install erlang
  • Install Elixir: brew install elixir

To start the test Phoenix server:

  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.create && mix ecto.migrate
  • Install Node.js dependencies with cd assets && npm install
  • Create you asset digest mix phx.digest
  • Start Phoenix endpoint in production mode MIX_ENV=prod mix phx.server

Now you can visit sample.phx.sh:4000 from your browser.

The following pages have issues in Safari.

Likely due to empty frames.

h2-safari's People

Contributors

idyll avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.