Why there is no Islamic architecture with glass in windows before 18th century? Glass windows frequently appear in gothic architecture since 11th century but why Medieval Islamic architecture lack glasswork?
The Blue Mosque may have had stained glass windows since 1617.
Nonetheless, consider the tradition of ventilated buildings in Islamic architecture. Buildings for hot, dry climates often have thick walls and small windows. This insulates while maintaining airflow, and may be the only option for earthen construction. In such places it's so bright outside that a small fraction of that light suffices inside. If for some reason you want to block the window, stick something into it. No glass is needed for this arrangement.
In Islamic architecture, latticework screens called jali represent an artistic approach to the principle of ventilated buildings. They provide shade, brilliant highlights, and interesting shadows, just like stained glass. This traditional element may help explain a relative dearth of stained glass windows in monumental buildings.
In addition to its European influences, Islamic architecture was most heavily influenced by Persian architecture. That's because the climate of Persia was most representative of that of most of the Islamic world.
The latter made heavy use of tiles to cover its domes, and even its windows. Creating windows with glass would have been "redundant" with tiles, which is why Islamic architecture did not use glass until the Middle Ages were long past.