Of course the idea that Johnny Depp's Captain Jack Sparrow has rarely been either protagonist or antagonist in these films makes the storytelling difficult and therefore the continuity hard to follow. And Depp is no longer the sweetheart, matinee idol, and box office draw he used to be, so it might be advantageous for the studio to make some definitive decisions about this franchise, or just end it.
This one is set several years after the last one, whichever one that was, and still revolves around Captain Jack Sparrow. This time his compass unlocks the curse of the Devil's Triangle, and the Flying Dutchman, and the Trident of Poseidon, and whatever other kitchen sink mumbo jumbo McGuffins were needed for this mess of a movie. But honestly that's not fair, it's only Depp that makes the film unwatchable.
They try very hard to make a good movie, with a convincing plot, and believable performances, and stunning special effects - but every moment that Johnny Depp is onscreen it becomes a politically incorrect cartoon, that after a while, becomes frankly insulting. The character is annoying, sexist, and takes the focus off the story and the rest of the cast. Disney is removing the 'we wants the redhead' sequence from their Pirates ride, how about getting rid of the alcoholic misogynist Captain Jack as well?
All in all, this was a bit too long, but was entertaining, and would have been a lot better without Johnny Depp. His time in the spotlight has long ago moved on.