Rather than piggybacking on first alert call, use the fact that the server and FX Web View are in the same VM and notify the view that bck2brwsr.js is about to be served from the server.
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
5 <artifactId>bck2brwsr</artifactId>
6 <groupId>org.apidesign</groupId>
7 <version>0.6-SNAPSHOT</version>
9 <groupId>org.apidesign.bck2brwsr</groupId>
10 <artifactId>javaquery</artifactId>
11 <version>0.6-SNAPSHOT</version>
12 <packaging>pom</packaging>
13 <name>JavaQuery API and Demo</name>
16 <module>demo-calculator</module>
17 <module>demo-calculator-dynamic</module>
18 <module>demo-twitter</module>