I no longer think this a query issue. I have viewed the error in the browser's developer tools and get this: "Refused to execute script from 'https://myURLhere.org' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
Currently the query looks like this:
query.where = "STATE_ABBR = 'GA' OR STATE_ABBR = 'IA' OR STATE_ABBR = 'KY'..."
It goes on like that for a while with more state abbreviations listed. I've seen the query.where statement help page where it says to use this type of quotation format: "STATE_ABBR = ' "GA" ' " OR STATE_ABBR = ' " IA " ' " etc. but all that breaks the map and makes the state abbreviations into non-strings which is the opposite of what I'd want.
I've also tried putting the definition of queryTask before the definition of query and the where clause based on the help pages but it doesn't work. This is how the whole query is set up and executed (please note, the where clause and queryTask.execute are never encased in function executeQueryTask() which I've also tried to no avail):
var query = new Query();
query.where = "STATE_ABBR = 'GA' OR STATE_ABBR = 'IA' OR STATE_ABBR = 'KY' OR STATE_ABBR = 'MO' OR STATE_ABBR = 'TX' OR STATE_ABBR = 'VA' OR STATE_ABBR = 'NE' OR STATE_ABBR = 'OK' OR STATE_ABBR = 'OH' OR STATE_ABBR = 'AR' OR STATE_ABBR = 'DE' OR STATE_ABBR = 'NJ' OR STATE_ABBR = 'SC' OR STATE_ABBR = 'MS' OR STATE_ABBR = 'TN'";
query.returnGeometry = true;
query.outFields = ["STATE_NAME", "STATE_ABBR"];
var queryTask = new QueryTask("https://fakeurl/rest/services/BaseLayers/USAStatesGeneralized/MapServer/0");