In this intellectual-property dispute, the district court ordered the case transferred to the Northern District of California on the basis of forum-selection clauses in two of the contracts between the parties. Lim-itNone, LLC, filed a petition for a writ of mandamus seeking an order directing the district court to vacate the transfer order. Because LimitNone has not shown an indisputable right to the relief it seeks, we deny the petition for a writ of mandamus.
I. Background
LimitNone is a software development and consulting company. Google, Inc., the real party in interest, also in the computer-software business, developed a suite of applications called “GoogleApps” to compete with the Microsoft Office suite of products. As of January 2007, Google lacked a method for Microsoft Outlook *574 users to move their e-mail, calendar, and contacts to the Google platform. Limit-None developed an application called “gMove” to fill this need. According to LimitNone, Google encourages and solicits third-party developers to develop applications for use with Google’s existing products. Accordingly, LimitNone pitched its gMove product to Google in March 2007. Before the meeting LimitNone signed a “Mutual Non-Disclosure Agreement,” and both parties signed a “Google Enterprise Professional Agreement.” Both agreements provided that the parties agreed to protect the confidentiality of the information that they exchanged. The agreements also contained forum-selection clauses providing that the “exclusive venue for any dispute relating to this Agreement shall be in state or federal courts within Santa Clara County, California.” Finally, both agreements provided that any modifications must be made in writing and signed by the parties.
The parties exchanged trade secrets during the meeting, and afterward Limit-None revised gMove to meet Google’s additional specifications. LimitNone then provided a “beta” version of gMove to Google. LimitNone asserts that when a Google employee installed the beta version of the gMove software, he electronically agreed to the “Beta License Agreement” on behalf of Google by clicking “accept” on a preliminary screen before proceeding with the program. In September 2007 LimitNone sent Google a final version of gMove. LimitNone maintains that a Google employee clicked “accept” on the “LimitNone License Agreement.” This electronic agreement, unlike those signed before the meeting, provided for exclusive jurisdiction and venue in the state courts sitting in Lake County, Illinois, or the United States District Court for the Northern District of Illinois.
The parties continued to refine gMove over the next several months. Then, in December 2007 Google notified LimitNone that it had developed its own alternative to gMove called “Google Email Uploader,” which it would give to its customers for free, thus destroying LimitNone’s customer base for its gMove product.
In June 2008 LimitNone sued Google in the Circuit Court of Cook County, Illinois, alleging violations of the Illinois Trade Secrets Act, 765 Ill. Comp. Stat. 1065/1 et seq., and the Illinois Consumer Fraud and Deceptive Business Practices Act, 815 Ill. Comp. Stat. 505/1 et seq. The next month Google removed the case to the United States District Court for the Northern District of Illinois. See 28 U.S.C. § 1441. Google asserted that removal was proper because the Consumer Fraud Act claim was preempted by the federal Copyright Act, see 17 U.S.C. § 301, and the federal court had supplemental jurisdiction over the Trade Secrets Act claim. LimitNone sought leave of the court, as Judge Manning requires, to file a motion to remand, and Google filed a motion to dismiss or, in the alternative, to transfer the case under 28 U.S.C. § 1404(a) to the Northern District of California. Google asserted that the business relationship between the parties was governed by the Non-Disclosure Agreement and the Google Enterprise Professional Agreement, both of which vested exclusive jurisdiction in the federal and state courts sitting in Santa Clara County, California.
The district court found that the NonDisclosure Agreement and the Google Enterprise Professional Agreement applied to this dispute and that the other agreements could not have superseded them because according to LimitNone’s own description, they were not in writing or signed by the parties. The district court therefore ordered the case transferred to the Northern *575 District of California but did so under 28 U.S.C. § 1406(a), holding that venue in Illinois was improper given the forum-selection clauses. The court never ruled on LimitNone’s request for leave to file a motion to remand. LimitNone now petitions for a writ of mandamus directing the district court to vacate its order transferring the case. The district court stayed the transfer pending the resolution of this petition.
II. Analysis
Mandamus is an extraordinary remedy. This court will issue the writ only when two conditions are met:
The first is that the challenged order not be effectively reviewable at the end of the case — in other words, that it inflict irreparable harm.... The petitioner must ordinarily demonstrate that something about the order, or its circumstances, would make an end-of-case appeal ineffectual or leave legitimate interests unduly at risk.... Second, the order must so far exceed the proper bounds of judicial discretion as to be legitimately considered usurpative in character, or in violation of a clear and indisputable legal right, or, at the very least, patently erroneous.
United States v. Vinyard,
This court has approved of the use of mandamus to prevent out-of-circuit transfers under 28 U.S.C. § 1404.
See Hicks v. Duckworth,
Bankers Life
might control this case except that the district court mis-characterized the transfer as one under § 1406(a) when it was 28 U.S.C. § 1404(a) that provided the necessary authority. Transfer under § 1406(a) is appropriate only when venue is improperly laid. 28 U.S.C. § 1406(a). Venue is proper in a federal-question (or, as here, purported federal-question) case in the judicial district where the defendant resides.
Id.
§ 1391(b). A corporation is deemed to reside in any district “in which it is subject to personal jurisdiction at the time the action is commenced.”
Id.
§ 1391(c). Google is licensed to do business in the State of Illinois and does business in the Northern District of Illinois. We have no doubt that the federal court sitting in that district had personal jurisdiction over Google when LimitNone filed its complaint.
See Int’l Shoe Co. v. Washington,
LimitNone, however, has not shown the district court’s order exceeded its jurisdiction or was otherwise erroneous. LimitNone maintains that the district court exceeded its authority in ordering the case transferred because (1) the district court failed to consider the “convenience, fairness, and judicial economy” of transferring the case before ruling on subject-matter jurisdiction, purportedly contrary to
Sinochem International Co. v. Malaysia International Shipping Corp.,
The district court transferred the case before ruling on LimitNone’s motion to remand because, it concluded, “the issue of venue is fairly easy to resolve.” The district court further noted that the conduct at issue occurred “mostly” in California. The relative ease of determining venue before subject-matter jurisdiction is an issue of judicial economy; the site of the majority of the conduct in question concerns the convenience and fairness of transferring the case. Assuming for the sake of argument that Sinochem imposes on district courts the requirements regarding transfer orders that LimitNone suggests, the district court satisfied them here.
Furthermore, the district court was not required to determine its own subject-matter jurisdiction before ordering the case transferred. Although in
Steel Co.
the Supreme Court mandated that issues of jurisdiction precede a determination of the merits, the Supreme Court has consistently held that “there is no mandatory ‘sequencing of jurisdictional issues.’ ”
Sinochem,
The line that the Supreme Court has drawn, consistent with its holding in
Steel Co.,
is that jurisdiction “ ‘is vital only if the court proposes to issue a judgment on the merits.’ ”
Sinochem,
LimitNone maintains that the factual determinations necessary to the transfer decision — that is, which contracts govern this dispute and where the parties have agreed to litigate — constituted decisions
on the merits,
and as a result, they were improperly made before a decision on subject-matter jurisdiction was rendered. District courts are permitted, indeed, in some instances required, to make whatever factual findings are necessary prior to issuing a preliminary order.
See, e.g., Szabo v. Bridgeport Machines, Inc.,
Of course a court may need to identify the claims presented and the evidence relevant to adjudicating those issues to intelligently rule on a forum non conve-niens motion. But other threshold issues may similarly involve a brush with “factual and legal issues of the underlying dispute.” For example, in ruling on the nonmerits threshold question of personal jurisdiction, a court may be called upon to determine whether a defen *578 dant’s contacts with the forum relate to the claim advanced by the plaintiff.
Sinochem,
Our holding today should not be read to suggest that district courts may in every case decide venue in advance of subject-matter jurisdiction without due consideration of whether it is advisable to do so. There may be circumstances in which a court abuses its discretion in electing to resolve one jurisdictional issue before another.
See Leroy,
Because the district court did not act outside of its authority either in the manner of its consideration of the transfer request or in deciding the issue of venue prior to subject-matter jurisdiction, the petition for a writ of mandamus is denied. LimitNone may move to remand the case to state court, should it so desire, after the case is transferred. See 28 U.S.C. § 1447(c) (“If at any time before final judgment it appears that the district court lacks subject matter jurisdiction, the case shall be remanded.”).
Petition Denied.
Notes
. We take no position on whether Limit-None’s claims "aris[e] under” the Copyright Act, but note that we would reach the same conclusion if we applied the venue provision applicable to copyright actions.
See
28 U.S.C. § 1400(a);
Janmark, Inc. v. Reidy,
. The district court appears to have subsequently corrected itself. In its order granting a stay of proceedings pending the resolution of this petition, the court referred to the transfer order as “discretionary,” and 28 U.S.C. § 1404(a) uses the permissive language "a district court may transfer,” while § 1406(a) uses the mandatory language "shall dismiss, or ... transfer.” See 28 U.S.C. §§ 1404(a) & 1406(a).
. Google submits that LimitNone waived this argument by failing to raise it in the district court, but Google has not directed us to any case where the principles of waiver or forfeiture have been applied to an original action commenced in the court of appeals. We therefore proceed to the merits.
