During Robert Riley's sentencing, chairwoman of the bench Georgina Scannell voiced her disgust at his "vile" and "offensive" online messages.
The offensive messages outraged the public. You had complete disregard for the tragic death of Ann Maguire.
Besides this, countless other vile messages were made by you.
The bench finds these were racially and religiously aggravated.
The offences are so serious that only a period of immediate custody can be justified.
More top news
Seven Welsh sites are in the running to be Heathrow logistics hubs which would deliver a number of skilled and semi skilled jobs in Wales.
Cloudy with outbreaks of patchy light rain at times, particularly across central and southern parts.
Wales are looking for a new manager after Chris Coleman resigned in order to take the vacant job at Sunderland.